users@glassfish.java.net

servlet consuming EJB from other application (EAR)

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Fri, 19 Feb 2010 09:18:00 +0100

I still need an example of a servlet consuming an EJB 3.1 deployed by
another application...

the scenario:

- everything in a same Glassfish
- 1 EAR application, containing an ejb-jar in the root and an
ejb-client.jar in the lib folder
- 1 WAR application, with a servlet trying to access the EJB through
its @Local interface....

please point me an example of that..........

* I am doing a JNDI lookup and it is working but it returns a proxy
that cannot be cast to the local interface....... what is missed ?

-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor