• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2.1.6 & EJB3.1

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wondering very quickly, if anyone has any examples of Struts2 & EJB3.1 working together.

I have tried just Injecting a EJB bean into a Struts Action but I get a NullPointerException

I found another thread on this forum where someone said use somethink like this:


javax.naming.NamingException: Lookup failed for 'com.myproject.bear.session.ITestSessionBean' in SerialContext [Root exception is javax.naming.NameNotFoundException: com.myproject.bear.session.ITestSessionBean not found]|#]

Can it be done and if so, anyone know how?

Cheers in advance

KS
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this plugin to inject EJBs into your struts 2 actions. This tutorial on use of guice plug-in might also be helpful...
 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers for that, will do.
 
Viji San
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this project dead or Am I checking in incorrect link ?? I find no downloads in the link http://code.google.com/p/struts2ejb3/downloads/list

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic