-
1. Re: Pulling messages from HornetQ
clebert.suconic Sep 13, 2011 10:29 AM (in response to gargkshitiz)This is really a high level question... you are basically asking us: How can I pull messages out of your *message* system using your API.
This is the answer:
http://docs.jboss.org/hornetq/2.2.5.Final/user-manual/en/html_single/index.html
http://www.jboss.org/hornetq/docs.html
I will help you out with a more specific question. This high level question is impossible to be answered.
-
2. Re: Pulling messages from HornetQ
gargkshitiz Sep 14, 2011 8:47 AM (in response to clebert.suconic)Hi Clobert,
I have gone through the docs and created a working demo, but was not able to find out the client 'pull' case. For some messages, I don't want hornetQ to push mesages to listeners instead some of my clients wants to pull those messages from a queue/address, say "test". I saw something similar in REST APIs but how can I do that with core APIs?
Regards,
Kshitiz Garg
-
3. Re: Pulling messages from HornetQ
clebert.suconic Sep 14, 2011 12:31 PM (in response to gargkshitiz)you can just create a consumer, and use the method receive()/receive(timeout)
I'm not sure what you are really asking here.
-
4. Re: Pulling messages from HornetQ
gargkshitiz Sep 14, 2011 1:55 PM (in response to clebert.suconic)Oh, that's it ! Thanks a lot...
Actually I had created consumers with message handlers , so their onmessage were getting called directly and I overlooked some methods in consumer. Will try this now.
Regards,
Kshitiz