Correct transaction handling in an EJB with bean managed transaction (BMT)

Solution Verified - Updated -

Issue

  • Do I need to commit or rollback the transaction in a BMT bean under any circumstances?
  • There is an ERROR in the logfile
ERROR tx.StatelessBMTInterceptor - Application error: BMT stateless bean EchosApiEJB should complete transactions before returning (ejb1.1 spec, 11.6.1)

Environment

  • Red Hat Enterprise Application Platform (EAP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content