0 Replies Latest reply on Jul 23, 2004 11:39 AM by ashields

    Closing a durable subscription connection

      I have an MBean which set's up a durable subscription to a topic, when I redeploy the MBean I get an exception with the message


      org.jboss.mq.SpyJMSException: Cannot get a client ID; - nested throwable: (javax.jms.JMSSecurityException: The login id has an assigned client id. That client id is already connected to the server!)


      Obviously I'm not closing my connection properly in stopService(), I've tried various permutations of calling close on the TopicSession, TopicConnection & MessageConsumer in various orders, what is the correct sequence for closing my connection in order to log out my client id?

      In case it makes any difference I'm using 3.04 & I'm assigning the client ID in jbossmq-state.xml

      Cheers