Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to inject EJB3 as constructor argument with Spring configuration

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't know how to inject an EJB3 bean into constructor parameter via Spring configuration.

Here is my controller:



CategoryManager.java is an Interface:


CategoryManagerImpl.java is a session bean:



mvc-dispatcher-servlet.xml file:


but the above jee: tag causes syntax error. However I think it is not right to use jnid-lookup for ejb3 bean in this case?

web.xml file:



Any suggestion is very appreciated.
Thanks
Sam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic