JMS -- About durable subscription

Discussions

EJB programming & troubleshooting: JMS -- About durable subscription

  1. JMS -- About durable subscription (1 messages)

    I would like to know the steps needed to create a durable subsrciber.

    I know that we can call createDurableSubscriber over TopicSession.Above method has two parameters namely, topic and the name to identify the subscriber.This part is fine.

    But I read somewhere that we also need to call setClientId() over TopicConnection or configure a TopicConnectionFactory with particular client id.. Now what is this client id. Is it going to be the same as the name given while creating durable subscriber.

    Also, does it mean there is one to one mapping b/w TopicConnectionFactory and durable subscriber?

    Thanks,
    -Nishchit


  2. Each client thats need a durable subscription needs a unique constant client id.