If you annotate some servlet, filter, or listener with @EJB
annotations at the class level this will get all those ejbs into the
java:comp/env jndi namespace so spring components can look them up
there. (Possibly the annotation is @EJBS, I haven't looked at this
in a while). You could also set this up in web.xml.
thanks
david jencks
On Oct 11, 2007, at 6:27 AM, ptriller wrote:
Hello !
I have a simple scenario.
I am deploying an EAR with some EJB3 Jars and a Webapp.
The Webapp is using spring, and I want to inject the EJB services
into the Spring context.
Unfortunately I have no Idea how to do that.
Spring does have a support Class for stuff like that, but the
LocalStatelessSessionProxyFactoryBean needs the JNDI
name for the EJB to use, and I cant figre out how to do that.
I know that the EJB gets a lobal JNDI name but that one includes
the name of
the
EAR and EJB jar which is not acceptable, since theese contain the
version
numbers of the jars
(I am using Maven2 to build).
Is there any way around this ?
Thanks
Peter
--
View this message in context: http://www.nabble.com/Geronimo-2.01-
stateless-session-beans-and-spring-tf4607255s134.html#a13155843
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.