title: Batch/bulk processing in JMS
body: <p>I'm having the following scenario where I receive an XML with multiple entries in the 100,000s. For each item, I have to process the message simultaneously and once that batch/bulk finishes, I have to notify the client that I processed the 100,000 entries that it sent. I'm thinking of adding each message in Message Driven Bean to simultaneously process each one of them. My problem is how do I know that the MDB processed all the messages in this batch, and send me a signal that all the messages in this batch/XML are finished? What is the best way to do this in Java Message Queue? I want to get notified when all the messages in this XML are processed so that I can notify the client.</p>