File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant do dependency injection of EJB3 stateless bean from a servlet in Weblogic 10.3.6

 
Anirban Chowdhury
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried all day today to inject my EJB3 from a serlet. Unfortunately couldn't get it to work.
Weblogic version : 10.3.6


**My EJBs**




**My Servlet**



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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic