timeout = Integer.parseInt(specifiedTimeOut) * 1000L;
return timeout;
}
public static String getBrokerInstanceName(JmsService js){
ServerEnvironmentImpl serverenv = Globals.get(ServerEnvironmentImpl.class);
Domain domain = Globals.get(Domain.class);
String asInstance = serverenv.getInstanceName();
String domainName = null;
if (isClustered()) {
Server server = domain.getServerNamed(asInstance);
domainName = server.getCluster().getName();
/*ClusterHelper.getClusterForInstance(
ApplicationServer.getServerContext().getConfigContext(),
asInstance).getName();*/
} else {
domainName = serverenv.getDomainName();//ServerManager.instance().getDomainName();
}
String s = getBrokerInstanceName(domainName, asInstance, js);
logFine("Got broker Instancename as " + s);
String converted = convertStringToValidMQIdentifier(s);
logFine("converted instance name " + converted);