tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Karalus <>
Subject Re: @LocalBinding with openejb
Date Mon, 08 Sep 2008 11:01:17 GMT

hello guys, 
thank you for you replies so far.
what I exactly mean is following:
In openejb, the default jndi binding pattern is done by setting the property
It is possible to override this for a specific ejb by the creating an
openejb-jar.xml file like this

  <ejb-deployment ejb-name="FooBean">
    <jndi name="foo" interface="org.superbiz.Foo"/>  

In JBoss there is a similar approach: You can override the jndi binding for
a specific ejb by 
a) creating a jboss.xml file (similar to openejb-jar.xml)
b) Via Annotations: @LocalBinding -> set the local jndi  binding,
@RemoteBinding -> set the remote jndi Binding 


public class FooBean implements Foo {

-> FooBean will be locally bound to "foo"

We would like to use openejb for embedded testing for an existing
application running on jboss. Since we already have a lot of EJBs with
@LocalBinding (>100), we would like to let openejb evalute the @LocalBinding
Annotations rather then creating an openejb.xml and maintain the bindings
twice (which is error prone). 

mnour wrote:
> I think Andreas means that you can override the binding to make it
> local rather than remote or vise-versa .
> On Mon, Sep 8, 2008 at 10:49 AM, Jean-Louis MONTEIRO
> <> wrote:
>> Hi,
>> Changing the JNDI name is also possible with OpenEJB.
>> You can override default naming for each module, ejb, ...
>> Did you have a look on that ?
>> Regards,
>> Jean-Louis

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message