Announcement Announcement Module
Collapse
No announcement yet.
Can I call a local EJB (2.1) from a POJO outside a web or EJB module using jee:local? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I call a local EJB (2.1) from a POJO outside a web or EJB module using jee:local?

    Hello. I am seeing a javax.naming.NameNotFoundException when trying to call a local EJB (2.1) using Spring <jee:local-slsb> from a POJO.

    My understanding is that I require an ejb resource-reference configured in my ejb-jar.xml in order for the local java:comp/env JNDI name to be mapped (bound) to the the global JNDI name of the EJB. As such, this will not work from a POJO that is not under the local Environmental Naming Context.

    The <jee:remote-slsb> works just fine as the global JNDI name is found.

    Is my understanding correct - that a POJO can only use jee:remote-slsb for EJB 2.1 calls (where the POJO is not within a web or ejb module)?
Working...
X