Hi,
I'm fairly new to
EJB and I'm trying to get them into my web application. I have a stateless bean that is defined like this:
MaintainItemFacade (the class interface)
MaintainItemFacadeRemote (extends above with remote)
MaintainItemFacadeBean (implements the above)
This works fine when my server is running and I access it with a standalone
test client.
Now I have a separate project running on the same server, which has a
servlet that I would like to access this bean's interface.
So, I've created a class InjectionTest, and immediately inside the class it says:
@EJB
private MaintainItemFacadeRemote miBean;
And then in the doGet method, it says:
PrintWriter out = response.getWriter();
out.println("You bean is "+miBean);
When I load this page, it tells me that the bean is null. What am I missing?
(I've seen similar threads that advised me to check if web.xml is running version 2.5. Yes it is.)
Russell