Hi JavaRanchers,
I have an ebj class packaged in an ejb.jar file and a war file that has a
servlet that calls the session bean in the ejb.jar file.
These are both packaged in an ear file. And i deploy the ear file to the application server which happens to be glassfish.
The servlet invokes the session bean as expected and everything works.
When i deploy the war and ejb.jar file separatelly(i.e. not in ear file) it doesnt work.
My question, is how do you deploy the ejb.jar file seraratelly to the war file and still enable the servlet in the war file get a reference to the bean.
I am using JEE5 and dependancy injection for the servlet to get a reference to the session bean. The session bean is also local not remote.
Does anyone know of a tutorial that shows how to deploy the beans separatelly from the war file.
Thanks,
Patrick