The strange thing is that I can call applicationContext.getbean("") from a
junit test but not in any class in my servlet. It looks like that spring
bean has not been initialized. But it is said in classPathApplication bean:

Loads the EJBs from the classpath just as when embedding OpenEJB via
  the org.apache.openejb.client.LocalInitialContextFactory.  All the
discovered
  EJBs are imported into this context and available for injection here.

I dont want to use @EJB annotation to get the local/remote ejb in my
servlet. I want to get it from spring so that I can call it everywhere in my
web app.

--
View this message in context: 
http://openejb.979440.n4.nabble.com/how-to-get-local-remote-ejb-stored-in-spring-from-a-servlet-openejb-spring-integration-tp3647869p3647934.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to