• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Query about accessing EJB from my Struts2 Action class

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In response to my question i got a answer like this

I am trying to communicate with EJB from my execute Method of the Action class
Please let me know i am using Weblogic11g and struts2 will The injection @EJB will work inside the Actiion class ??


Answer which i got is :

Dependency injection in the web tier is only allowed in classes managed by the container, such as Servlets, Listeners and also allows it in JSF managed beans.


Please tell me if the Action class is not managed by the Container , who manages it ??

THnaks in advance .
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. In response to this thread of yours, there were two plugins that I mentioned, one of them is Jboss specific, the other one can be used on any application server.

2. A struts 2 action is maintained by the struts framework...
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ankit .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic