aspose file tools
The moose likes Struts and the fly likes [Struts 2] Best practices for injecting EJBs into an action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[Struts 2] Best practices for injecting EJBs into an action" Watch "[Struts 2] Best practices for injecting EJBs into an action" New topic
Author

[Struts 2] Best practices for injecting EJBs into an action

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

hi,
i would like to know if there any best practices for injecting EJBs into an action.

Actions are not managed beans, unlike JSF, so I am wondering how people work with EJBs from actions in Struts 2.

Thanks for your feedbacks.

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9327
    
  19

Well I think using Spring to inject the EJBs into actions is the best strategy. There is an alternative given here but I think it is non-standard...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

Ankit Garg wrote:Well I think using Spring to inject the EJBs into actions is the best strategy. There is an alternative given here but I think it is non-standard...


interesting, they use Guide in that example.

I might use Spring though.

Thanks for the link.

Someone else knows other ways ?
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: [Struts 2] Best practices for injecting EJBs into an action