This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I tried all day today to inject my EJB3 from a serlet. Unfortunately couldn't get it to work.
Weblogic version : 10.3.6
I have an application.xml and a web.xml but no ejb-jar.xml or other deployment descriptors as I will be using only annotations as of now.
Now, I can do a perfect lookup using the specified JNDI name, however the DI doesn't happen.
I have tried with :@EJB(mappedName="testFirstStatelessBean") as well on the servlet. Even that doesn't work. Please let me know what can be done here?