tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert van Loenhout <>
Subject RE: ejb2 jndi name
Date Tue, 30 Aug 2016 14:41:48 GMT
Hi Romain,

Do I need a prefix?
By default it would be
Context.lookup("MyEjbEJBHome") ?

-----Original Message-----
From: Romain Manni-Bucau [] 
Sent: 30 August 2016 16:19
Subject: Re: ejb2 jndi name

Hi Robert,

first of all legacy names are not logged but still active so normally you don't need to configure
it. Default is:

Then is a good place to configure any tomee property (it should be the default
location as an user actually).

If you need more assistance I would suggest you to build a project with an arquillian test
using arquillian-tomee-remote to reproduce your issue and share the link to github (or any
public repository) to let us help you in an accurate way. Arquillian will allow you to configure
the system properties in arquillian.xml (see properties of tomee remote adapter on

Romain Manni-Bucau
@rmannibucau <> |  Blog <>
| Old Wordpress Blog <> | Github <>
| LinkedIn <> | Tomitriber <>
| JavaEE Factory <>

2016-08-30 16:08 GMT+02:00 Robert van Loenhout <

> Hi,
> I'm deploying something with ejb2 in tomee.
> In the log I can see entries like thisd that bind the EJBs to JNDI.
> Jndi(name=global/my_ear-version/my_ejb-version/MyEjb!
> Home)
> --> Ejb(deployment-id=MyEjb)
> Jndi(name=global/my_ear-version/my_ejb-version/MyEjb) -->
> Ejb(deployment-id=MyEjb)
> I can indeed use these global names to access my EJB from the 
> InitialContext, however I need a way to access them with an easier 
> name, prefereably the ejb-name, or the deployment-id.
> I tried to search an answer for this and I did get the following 
> information.
> This page mentions that I, a lazy developer, can use the -D option of 
> the deploy tool, but I don't know how to configure this for tomee.
> This page specifies how to customize the JNDI name.
> I have set
> openejb.jndiname.format = {ejbName}
> in the and, but it doesn't seem 
> to have any effect.
> Thanks for any help.
View raw message