3 Replies Latest reply on Jun 7, 2004 4:23 PM by damo9f

    How to nicely destroy a topic being used?

    Pascal Bauer Newbie


      I am using Jboss 3.2.2. Server side I create at run time some topics and publishers. Subscribers are hosted by applets. When I stop my application I destroy all created topics.

      All is working fine until I try to redeploy my application, with a running client (Subscriber). When I try to destroy a topic I got:

      12:00:37,421 ERROR [TEST_TOPIC_1] Destroying failed
      javax.jms.JMSException: The destination is being used.
      at org.jboss.mq.server.JMSDestinationManager.closeDestination(JMSDestinationManager.java:807)
      at org.jboss.mq.server.jmx.DestinationMBeanSupport.destroyService(DestinationMBeanSupport.java:142)

      Ok why not except when I try after to lookup for the topic I got a NameNotFound Exception. Naturally if I remove all subscribers and publishers all is working fine.

      Has anyone a suggestion?