/**
* Updates the das properties from domain.xml if they have changed
*/
protected void updateDASConnectionInfo() throws Exception {
MBeanServerConnectionInfo dasInfo =
InstanceRegistry.getDASConnectionInfo(getConfigContext());
boolean bWrite = false;
// get appropriate das properties
DASPropertyReader dasProperty = getDASPropertyReader();
if (!dasProperty.getProtocol().equals(dasInfo.getProtocol()) ||
!dasProperty.getPort().equals(dasInfo.getPort()) ||
!dasProperty.getHost().equals(dasInfo.getHost())) {
// something changed for the das connection, update das properties
dasProperty.setProtocol(dasInfo.getProtocol());
dasProperty.setPort(dasInfo.getPort());
dasProperty.setHost(dasInfo.getHost());
bWrite = true;
// log message so the user will know to change hosts file
// so it is pingable.
getLogger().log(Level.CONFIG, "nodeagent.changeOfDASValues",
new Object[] {dasInfo.getHost() + ":" + dasInfo.getPort(),
dasInfo.getHost()});
}
// check to see if jmx secure flas has changed
Server das = ServerHelper.getDAS(getConfigContext());