• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 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: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 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
  • 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 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!