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:
I will help you out with a more specific question. This high level question is impossible to be answered.
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?
you can just create a consumer, and use the method receive()/receive(timeout)
I'm not sure what you are really asking here.
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.