I have an application with a high level of load and performance's critical .
Now, I'm migrating the application to use EJB. I'm very worried about using EJB to consume messages on queues because transactionality can decrease the performance.
Now, I'm consuming X messages in the same transaction, but I don't know how do the same using MDBs. Is it possible to consume a block of messages in an MDB using only one transaction?