tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
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 <>

> 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:
> Sent from the OpenEJB User mailing list archive at

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