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: EJB with slash on JNDIName
Date Thu, 12 May 2016 21:09:07 GMT
Hi Gabriel

What is the goal? Arent EE 6 standard names enough? Custom names cane be a
lot of work for a poor gain so would like some more inputs to help you the
best we can.
Le 12 mai 2016 22:55, "Gabriel Buades" <gbuades@soffid.com> a écrit :

> Hello.
>
> I am experiencing with Tomee 1.7.4 and OpenEJB, and I am trying to deploy
> an EJB on a specific JNDI path: soffid/version2/ejb/MyBean to get
> compatiblity with existing client code.
>
> I've written a proper openejb-jar.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1">
>   <ejb-deployment ejb-name="SoffidDeployerBean">
>     <jndi name="soffid/version2/ejb/MyBean"/>
>   </ejb-deployment>
> </openejb-jar>
>
> But it is ignored.
>
> Looking at source code, I've found that if the JNDI contains a slash, it's
> only used if it starts with "default". So, if I replace the desired path
> with default/soffid/version2/ejb/MyBean :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1">
>   <ejb-deployment ejb-name="SoffidDeployerBean">
>     <jndi name="default/soffid/version2/ejb/MyBean"/>
>   </ejb-deployment>
> </openejb-jar>
>
> The EJB is deployed at default/soffid/version2/ejb/MyBean, but I'd like to
> strip the default prefix.
>
> Am I missing something ?
>
> Thanks in advance.
>
> Gabriel
>

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