0 Replies Latest reply on Mar 13, 2002 2:16 AM by Matthew

    Unsubscribing Durable subscribers..?

    Matthew Newbie

      Hello all,

      I have been having some trouble with unsubscribing
      durable subscribers, I am using JBoss-2.4.4_Tomcat-4.0.1

      The situation is this:

      Firstly I set up the username, passwd and Id in the
      jbossmq-state file.

      Then I create a topic connection with the two parameters (usernname, passwd).

      A normal Session is then created.

      Then I create a durable subscriber passing in the topic and the Id. Eg aSession.createDurableSubscriber(aTopic, Id)

      Once I have done that the durable subscibers works fine, I receive messages all ok.

      As I want all the topic info and durablesubscription info
      removed from the jbossmq-state file. I try to unsubscribe
      the subscriber, but it gives me a server exception.

      I am doing the following:
      subscriber.close();
      aSession.unsubscribe(Id);
      aSession.close();
      connection.close();

      Any insight on this matter would be much appreciated.

      Thanking you,

      -Mazza