Hi,

>Which one?

Tomcat + OpenEJB in OSGi environment

>Looks like your integration isn't exactly complete.

Yep it cannot reach the OpenEjb at all because there is no binding in the
naming for local EJBs

>Local EJB refs aren't bound, only (non-local) EJB refs?

Yep

>Looks like nobody has done anything about that.
>
>Tomcat is a servlet container that provides minimal support for EJBs
>and things like that. It's no shock to me that something like this is
>unimplemented. If you are interested in providing a patch, we'd be
>glad to consider it for inclusion.

Thanks. I'll definitely do it today or tomorrow.

Regards
Violeta

2012/2/15 Christopher Schultz <ch...@christopherschultz.net>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Violetta,
>
> On 2/15/12 3:11 PM, Violeta Georgieva wrote:
> > I integrated Tomcat 7.0.25 with an EJB container.
>
> Which one?
>
> > I have simple web application that uses ejb-local-ref (see the
> > attachment).
> >
> > Unfortunately when I request the web application it cannot find the
> > ejb at all:
> >
> > javax.naming.NameNotFoundException: Name ejb is not bound in this
> > Context
> > org.apache.naming.NamingContext.lookup(NamingContext.java:820)
> > org.apache.naming.NamingContext.lookup(NamingContext.java:154)
> > org.apache.naming.NamingContext.lookup(NamingContext.java:831)
>
> Looks like your integration isn't exactly complete.
>
> > I can see that local EJB refs are not bound, but only EJB refs -
>
> Local EJB refs aren't bound, only (non-local) EJB refs?
>
> > org.apache.catalina.core.NamingContextListener.createNamingContext()
> >
> >  Also in the same class I can see that addLocalEJB method is marked
> > as NO-OP.
> >
> > Is that intentional? What I have to do in order to have this sample
> > running?
>
> Looks like nobody has done anything about that.
>
> Tomcat is a servlet container that provides minimal support for EJBs
> and things like that. It's no shock to me that something like this is
> unimplemented. If you are interested in providing a patch, we'd be
> glad to consider it for inclusion.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk88F78ACgkQ9CaO5/Lv0PAmngCgjNb2EMZvQb5owI5td+lRxngk
> xX0AnjGr9t++WXtUn4rURQt4bCWvGVD3
> =xkuk
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to