2 Replies Latest reply on Sep 19, 2003 7:44 AM by adrian.brock

    deleting Topics

    red_one

      How can I force jboss to destroy a Topic, when there are existing subscribers to it?
      I get this when I try:
      17:25:07,736 ERROR [testTopic1] Destroying failed
      javax.jms.JMSException: The destination is being used.
      at org.jboss.mq.server.JMSDestinationManager.closeDestination(JMSDestinationManager.java:804)
      at org.jboss.mq.server.jmx.DestinationMBeanSupport.destroyService(DestinationMBeanSupport.java:122)

      etc

      I was thinking of trying to destroy the topic, if topic still exists, send message to subscribers, make them unsubscribe themselves, try deleting again.
      Is there a less ugly way?
      Maybe server side?
      What happens to subscribers when their topic is destroyed? Nothing?

        • 1. Re: deleting Topics

          Deletion is refused because sessions are open on that Topic. I would say that closing the sessions (at server side I mean) is the cleaner solution.

          However, i have not seen any method in the jmx console to do that. Maybe Adrian has more feedback regarding this topic.

          Regards,

          Stephane

          • 2. Re: deleting Topics

            We have not interface for ending subscriptions or connections from the jmx console.

            If you are interested why don't you step up to the plate?
            Exposing the ClientConsumers as MBeans would probably
            be the way to do this.

            Regards,
            Adrian