This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 - Dependency Injection inside the Struts2 Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 - Dependency Injection inside the Struts2 Action class " Watch "Struts2 - Dependency Injection inside the Struts2 Action class " New topic
Author

Struts2 - Dependency Injection inside the Struts2 Action class

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I am using Weblogic11g Application server .

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 ??


Save India From Corruption - Anna Hazare.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Ravi try to Search First as someone else might have had the same problem earlier so it might be already solved like here and here (only for jBoss)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks Ankit . It was very useful .

But i am wondering why is it possible in JBOSS and why not in weblogic11??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 - Dependency Injection inside the Struts2 Action class
 
Similar Threads
Struts2 - Json issue, InvocationTargetException
A Query about accessing EJB from my Struts2 Action class
Is struts2 Action class suppourts Dependency Injection featuture
struts2 problem
downloading a file struts2