This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic