[jboss-cvs] JBoss Messaging SVN: r2125 - trunk/src/main/org/jboss/jms/server/connectionfactory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 1 10:02:10 EST 2007
Author: timfox
Date: 2007-02-01 10:02:10 -0500 (Thu, 01 Feb 2007)
New Revision: 2125
Modified:
trunk/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java
Log:
Should use getCanonicalName() rather than toString() to get unique name of mbean
Modified: trunk/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java
===================================================================
--- trunk/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java 2007-02-01 14:09:44 UTC (rev 2124)
+++ trunk/src/main/org/jboss/jms/server/connectionfactory/ConnectionFactory.java 2007-02-01 15:02:10 UTC (rev 2125)
@@ -122,7 +122,7 @@
// We use the MBean service name to uniquely identify the connection factory
connectionFactoryManager.
- registerConnectionFactory(getServiceName().toString(), clientID, jndiBindings,
+ registerConnectionFactory(getServiceName().getCanonicalName(), clientID, jndiBindings,
locatorURI, enablePing, prefetchSize,
defaultTempQueueFullSize, defaultTempQueuePageSize,
defaultTempQueueDownCacheSize, clustered,
@@ -158,7 +158,7 @@
started = false;
connectionFactoryManager.
- unregisterConnectionFactory(getServiceName().toString(), clustered);
+ unregisterConnectionFactory(getServiceName().getCanonicalName(), clustered);
connectorManager.unregisterConnector(connectorObjectName.getCanonicalName());
log.info(this + " undeployed");
More information about the jboss-cvs-commits
mailing list