Thanks for your interesting.
I solved the issue injecting the
EJB in a
servlet and it worked fine.
So I wanted to go further and develop a web application with three tiers:
#1.- the entities Customer and Order,
#2.- the stateful session ejb CustomerControllerBean and OrderControllerBean that use two JavaBean named CustomerDetails and OrderDetails that represent a Customer and an Order,
#3.- and finally the web tier with some JSPs , a controller Servlet, and two JavaBeans named CustomerBean and OrderBean where I inject the ejb remote interfaces
The idea is to use use the CustomerBean and OrderBean as façade.
Well, as I told you above the firs web application run ok injecting the ejb remote interfaces in the servlet.
But the second and more complicated web application do not works. The problem is the same that you observed in my initial posted application: the injected ejb fails and throw a NullPointerException.
I use Eclipse Ganymede RS1 To develop and deploy the web app on glassfish v2ur2.
Regards,
Jose Alvarez de Lara