"Sandypriya" wrote : Hi ,
|
| I am able to send 1000 messages to the queue and also created a consumer using MDB to
receive all those messages.
|
I'm not sure how you're doing that. The MDB handles the consumer part for you. All
you have to do is write the onMessage method on the MDB. If you are creating a Consumer
inside a MDB you probably didn't get the idea of what a MDB is supposed to do.
"Sandypriya" wrote :
| My question is after receiveing messages from the queue,can I create a batch of 10
messages in to a xml ? As the MDB listener always receive only one mesages at a time, I
wonder how to create a batch after receiving messages from that queue.
That's something totally up to your implementation.
It seems a little bit weird though. If you start to cache messages outside of
JBossMessaging you will probably loose guarantee of delivery. You will probably cache it
anywhere in your application after you have already confirmed receiving of the message. If
the server crashes you won't receive the same message again.
It looks like you have something not well modeled/programmed at your business use case.
(That's just my 2 cents opinion)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180675#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...