-
Mar 7th, 2012, 12:30 PM
#1
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)?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules