EJB does transaction rollback after transaction complete
posted 8 years ago
I have an application showing odd behavior. I have servlet that calls a resend bean every 5 minutes, this bean checks a queue for messages to process. The Bean is a stateless CMT bean. All works normally well except under a large load. When I process 2000+ messages, the bean will take 15+ minutes to process all messages successfully. It then closes the connection to the queue and 15 seconds later the servlet throws org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbackException and then proceeds to rollback all the successful messages back on the queue to be processed again in 5 minutes.