I have a question on duralbe subscriptions. I create subscription with the following code:
TopicConnectionFactory tcf = ... TopicConnection conn = tcf.createTopicConnection(user, pw); Topic topic = (Topic) iniCtx.lookup(...); TopicSession session = conn.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE); conn.start(); TopicSubscriber recv = session.createDurableSubscriber(topic, suscrId);
Hi, if your client crached leaving session and connection not closed. You can wait for some time to let the server detect the crash. When the serer detectes that the client crashed, it will clean up the session and connections. Then you can restart your client.