If my client for some reason goes down and I have to restart it, I'd get the following exception ...
--- MBeanException: Exception in MBean operation 'createQueue(,java.lang.String,java.lang.String)' Cause: javax.management.InstanceAlreadyExistsException: jboss.mq.destination:service=Queue,name=trinity already registered. at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:303) --- The following code is used to created this queue ... --- MBeanServer server = (MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); server.invoke(new ObjectName("JBossMQ", "service", "Server"), "createQueue", new Object[] { bInfo.getNodeName() }, new String[] {"java.lang.String"}); --- So my question is, if this queue already exists, how would I *unregister* it and then recreate it? Any help much appreciated. ------------------------------------------------------- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user