Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
EJB and other Java EE Technologies
Get EJB Home from another EJB method?
posted 11 years ago
I've drawn a complete blank with this & am begining to think I'm the only one in the entire world that's tried it!
I want to get the home object for another EJB - but I HAVE to use something like -
home = (EJBLocalHome) context.lookup("ejb/EJB1");
home = (EJBLocalHome) context.lookup("java:comp/env/ejb/EJB1");
From another class such as a
Action method the latter works fine!
Is this what's supposed to happen, is it my fault or what?
As far as I can see all <ejb-local-ref> are setup fine!
Please someone put me out of my misery! - can this be done?
deploying .war and .jar files separately
javax.ejb.EJBException: Impossible to create the MyBean: EJB Exception:
Session removal via local home?
How to call Local Home of EJB2.1 from EJB3.0