EJB fails to find UserTransaction and throws NameNotFoundException
Issue
- We are using EJB 2.x and looking up UserTransaction. Following is the ejb-jar.xml:
<ejb-name>ExampleService</ejb-name>
<home>my.ejb.scheduler.SchedulerEJBHome</home>
<remote>my.ejb.scheduler.SchedulerEJB</remote>
<local-home>my.ejb.scheduler.SchedulerEJBLocalHome</local-home>
<local>my.ejb.scheduler.SchedulerEJBLocal</local>
<ejb-class>my.ejb.scheduler.SchedulerEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.1.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.