aspose file tools
The moose likes Struts and the fly likes Struts2 - Dependency Injection inside the Struts2 Action class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9191
    
    2

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts2 - Dependency Injection inside the Struts2 Action class
 
Similar Threads
struts2 problem
downloading a file struts2
Struts2 - Json issue, InvocationTargetException
Is struts2 Action class suppourts Dependency Injection featuture
A Query about accessing EJB from my Struts2 Action class