Yes that should work.
For this task, you want to consider adding a start() and stop() method on the
ClientConsumer class.
First you need to tell the server consumer endpoint to stop and obtain the lastDeliveryID
(like how is currently done in closing()).
Then wait for the delivery to arrive and wait for onMessages to execute, much as is
currently done in close().
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059093#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...