Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Dependency injection of remote EJB in Tomcat 6.0

femski

2007-07-24



Hi Folks !

I am trying to a a reference to a remote EJB3 session bean injected in a JSF
Backing bean in Tomcat 6.0. It looks like this:

@EJB(name="testJbossEar/helloWorld/remote")

Session bean looks like:

@Stateless
public class helloWorld implements HelloWorldRemote

This works in bundled JBoss/Tomcat. But not in standalone Tomcat.

Is dependency injection supported in Tomcat version 6.0 ? If so how do you
get it to inject a remote reference ? I understand its not standardized. But
even a non-standard way with little bit of external xml configuration is ok.
I won't mind using a DI framework like Spring or Guice - if thats what it
takes. Because JNDI lookup is a mess.

thanks,

-Sanjay
--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.