EJB fails to find UserTransaction and throws NameNotFoundException

Solution Unverified - Updated -

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.

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