-
1. Re: <Hornetq-REST> Durable subscriptions are not getting GCed after calling DELETE subscription explicitly through REST
clebert.suconic Oct 29, 2010 9:56 AM (in response to rahul_gsg)Can you provide a test code?
-
2. Re: <Hornetq-REST> Durable subscriptions are not getting GCed after calling DELETE subscription explicitly through REST
rahul_gsg Oct 29, 2010 12:11 PM (in response to clebert.suconic)Hi Clebert ,
Here is my test case <I have not given any source as I am able to reproduce the same by using the REST client pulgin in Mozilla>
Below are my configuration settings and the flow I carried out.
My hornetq-jms.xml has<topic name="TestHQ1Topic">
<entry name="topic/TestHQ1Topic"/>
</topic>
1. HEAD http://<IP_ADDRESS>:8080/hornet-q/topics/jms.topic.TestHQ1Topic
2. POST http://<IP_ADDRESS>:8080/hornet-q/topics/jms.topic.TestHQ1Topic/pull-subscriptions
o <Header> Content-Type: application/x-www-form-urlencoded
<Body>durable=true<REPLAY>
>>>>msg-consume-next http://<IP_ADDRESS>:8080/hornet-q/topics/jms.topic.TestHQ1Topic/pull-subscriptions/auto-ack/1288366942952-1-jms.topic.TestHQ1Topic/consume-next-1
>>>>Location http://<IP_ADDRESS>:8080/hornet-q/topics/jms.topic.TestHQ1Topic/pull-subscriptions/auto-ack/1288366942952-1-jms.topic.TestHQ1Topic
3. DELETE http://<IP_ADDRESS>:8080/hornet-q/topics/jms.topic.TestHQ1Topic/pull-subscriptions/auto-ack/1288366942952-1-jms.topic.TestHQ1Topicchecked JMX-Console after some time , it still had "address="jms.topic.TestHQ1Topic",module=Core,name="1288366942952-1-jms.topic.TestHQ1Topic",type=Queue"
All the messages published to this topic keeps on getting accumulated at this subscriber (checked through JMX-console)
Same test case with non-durable works fine as expected.
Please let me know if you want me to provide any more info.
Thanks
-
3. Re: <Hornetq-REST> Durable subscriptions are not getting GCed after calling DELETE subscription explicitly through REST
rahul_gsg Oct 29, 2010 12:16 PM (in response to rahul_gsg)I also see the interceptor with SessionDeleteQueueMessage and SessionConsumerCloseMessage when DELETE request is made using REST.