* the admin username/passwd or port.
*/
private synchronized JMSAdmin getJMSAdmin() throws Exception
{
ConfigContext serverContext;
JmsService jmsService;
JMSAdminFactory jmsaf;
JMSAdmin _jmsAdmin = null;
String instanceName, portStr, username, password, localhost, jmsAdminURL;
serverContext = getConfigContext();
jmsaf = IASJmsUtil.getJMSAdminFactory();
jmsService = (JmsService)ConfigBeansFactory.getConfigBeanByXPath(
serverContext, ServerXPathHelper.XPATH_JMS_SERVICE);
localhost = java.net.InetAddress.getLocalHost().getHostName();
JmsHost hostElement = jmsService.getJmsHost(0); //ms1 krav
portStr = hostElement.getPort();
username = hostElement.getAdminUserName();
password = RelativePathResolver.getRealPasswordFromAlias(hostElement.getAdminPassword());
jmsAdminURL = localhost + ((portStr == null) ?
"" : ":" + portStr);