1 Reply Latest reply on Oct 19, 2010 10:43 PM by Yong Hao Gao

    Need to pass selector again on reconnect?

    Bill Burke Master

      If you are reconnecting a durable consumer, do you need specify the selector again?

        • 1. Re: Need to pass selector again on reconnect?
          Yong Hao Gao Master

          I think so. Otherwise you will end up a new consumer. The jms API doc says:

           

          A client can change an existing durable subscription by creating   a durable TopicSubscriber with the same name and a new   topic and/or   message selector. Changing a durable subscriber is equivalent to   unsubscribing (deleting) the old one and creating a new one.

          (in Session.createDurableSubscriber(...))