tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: how to get local/remote ejb stored in spring from a servlet - openejb spring integration
Date Wed, 06 Jul 2011 07:41:04 GMT
Well, from your logs you didn't deploy Cineplex but BookTest isn't it?

can you share a webapp?

however you don't need spring to access your bean everywhere, a lookup with
openejb local initial factory set in properties is often enough.

- Romain


2011/7/6 lamle <lamle@wapice.com>

> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message