You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Hicham Yahiaoui <hi...@edifixio.com> on 2016/12/07 07:26:57 UTC

JNDI name issue

Hello,

I'm using TomEE for my developments and I encoutered the following issue.

In my system.properties file I have these two lines :

openejb.deploymentId.format = {appId}/{ejbJarId}/{ejbName}
openejb.jndiname.format = {ejbName}

This configuration works perfectly for EJBs that are annotated with
@Stateless but it does not for the @MessageDriven one.

For @Stateless it's take the ejbName as JNDI name but for @MessageDriven it
takes the deploymentId as JNDI name.

Is it normal or am I missing something?

Best regards,

-- 

Hicham Yahiaoui | EdifiXio
*Mobile France:* +33 (0)7 61 43 24 48 | *Email:*
hicham.yahiaoui@edifixio.com
*Address :* 123 rue Jules Guesde, 92300 Levallois-Perret

Re: JNDI name issue

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

What do you try to achieve? do you need to look up a MDB? not sure this is
supposed to work

Le 7 déc. 2016 14:30, "Hicham Yahiaoui" <hi...@edifixio.com> a
écrit :

> Hello,
>
> I'm using TomEE for my developments and I encoutered the following issue.
>
> In my system.properties file I have these two lines :
>
> openejb.deploymentId.format = {appId}/{ejbJarId}/{ejbName}
> openejb.jndiname.format = {ejbName}
>
> This configuration works perfectly for EJBs that are annotated with
> @Stateless but it does not for the @MessageDriven one.
>
> For @Stateless it's take the ejbName as JNDI name but for @MessageDriven it
> takes the deploymentId as JNDI name.
>
> Is it normal or am I missing something?
>
> Best regards,
>
> --
>
> Hicham Yahiaoui | EdifiXio
> *Mobile France:* +33 (0)7 61 43 24 48 | *Email:*
> hicham.yahiaoui@edifixio.com
> *Address :* 123 rue Jules Guesde, 92300 Levallois-Perret
>