[jboss-user] [EJB 3.0] - Re: Dependency Injection of EntityManager / -Factory in Serv

ALRubinger do-not-reply at jboss.com
Thu Mar 15 10:14:58 EDT 2007


Oh, I didn't mean to infer that. 

By putting the EM in JNDI (it gets placed into the "Java:/" Namespace), your Servlet can obtain an EM via a traditional Context.lookup call (just like application clients find EJB stubs).  You just can't inject.

Or, you can look into integrating w/ JBoss Seam, which handles Webapp/EM integration for you through the use of listeners and filters (though it's been awhile since I've played with it).

S,
ALR

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028391#4028391

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028391



More information about the jboss-user mailing list