2 Replies Latest reply on Nov 20, 2003 1:47 AM by bercht-a

    Unsubscribe durable subscriber (MDB)

    bercht-a Newbie

      I deploy a durable MDB and it creates a durable subscription in the jbossmq-state.xml. Then I undeploy the durable mdb. How can I remove the durable subscrition from my code? I tested the TopicSession.unsubscribe() Methode but theres a problem with the Client: ID --> org.jboss.mq.SpyJMSException: Cannot destroy durable subscription ID:18.station_a/d46d5950c0a801090100c858834d22ab; - nested throwable: (javax.jms.JMSException: No durable subscription found for subscription: station_a/d46d5950c0a801090100c858834d22ab)

      I need Help..

        • 1. Re: Unsubscribe durable subscriber (MDB)
          Elias Ross Master


          Looks like jbossmq-state.xml has a list of logins/passwords to role mappings.

          Maybe you should explain your motivation for removing the subscription? You usually define those in another file. If you want the messages to go away, use JMX to remove them.

          • 2. Re: Unsubscribe durable subscriber (MDB)
            bercht-a Newbie

            My motivation is to create a replication system. On the clients you can subscribe and unsubscribe for some topics. If I unsubscribe a topic so I have to remove the durable subscription on the server (JBoss with JMS). On the clients (JBoss) I hotdeploy a jar file with an mdb for the selected topic. When the client unsubscribe this topic on the server, i delete the jar file in the deploy directory on the client. But i also have to remove the subscription on the Server.