0 Replies Latest reply on Jan 3, 2003 3:23 PM by xibin

    Dynamic Topic creation/destruction

    xibin

      I am using the DestinationManager through the jmx rmi adaptor. Everything works fine except that everytime I invoke destroyTopic on a topic that I created dynamically, it throws the following exception:

      (This behavior can also be duplicated using the JMX console, by invoking destroyTopic on the DestinationManager MBean.

      The strange thing is that even though the exeception was thrown, the topic was actually destroyed. By the way, I made sure that sessions associated with the topic were closed before I invoke destroyTopic.)

      Anybody else has seen this?

      javax.jms.JMSException: The destination is being used.
      at org.jboss.mq.server.JMSDestinationManager.closeDestination(JMSDestina
      tionManager.java:809)
      at org.jboss.mq.server.jmx.DestinationMBeanSupport.destroyService(Destin
      ationMBeanSupport.java:114)
      at org.jboss.system.ServiceMBeanSupport.destroy(ServiceMBeanSupport.java
      :235)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:978)
      at $Proxy30.destroy(Unknown Source)
      at org.jboss.system.ServiceController.destroy(ServiceController.java:533
      )
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy6.destroy(Unknown Source)
      at org.jboss.mq.server.jmx.DestinationManager.destroyDestination(Destina
      tionManager.java:189)
      at org.jboss.mq.server.jmx.DestinationManager.destroyTopic(DestinationMa
      nager.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      ...