-
1. Re: EJB lookup problem using local client view at "java:global/.." (from outside EAR)
pmm Jul 28, 2014 8:30 AM (in response to rakcheru)Here's the set up I would use: move the WAR into the EAR
- An Ear
|_ EJB jar (content of EJB Client Jar missing)
|_ lib/EJB Client Jar
|_ Another War (EJB Client Jar not in WEB-INF/lib)
Then you can use use @EJB or the JNDI names that JBoss AS logs during start up
-
2. Re: EJB lookup problem using local client view at "java:global/.." (from outside EAR)
wdfink Jul 28, 2014 11:17 AM (in response to pmm)@EJB is not available with EJB2, it might work under some circumstances but can have issues.
-
3. Re: EJB lookup problem using local client view at "java:global/.." (from outside EAR)
wdfink Jul 28, 2014 11:20 AM (in response to rakcheru)Packing several ejb-client jars in your application can be problematic and have classloading issues - as you see.
You should have only the EAR/lib/ejb-client.jar and the classes not somewhere else.
Also you can use the lookup with "app/Ejb/..." approach to prevent from using the ear name.
-
4. Re: EJB lookup problem using local client view at "java:global/.." (from outside EAR)
pmm Jul 30, 2014 3:52 AM (in response to wdfink)Wolf-Dieter Fink wrote:
@EJB is not available with EJB2, it might work under some circumstances but can have issues.
I didn't see that, JNDI look in this case. Geez people are still using EJB2?