Re: @LocalBinding with openejb
We could add something for that. Can you explain exactly how the annotation is supposed to work? Are there other similar annotations for stuff like remote interfaces? Also, if you have time, can you add a "New Feature" jira issue (http://issues.apache.org/jira/browse/OPENEJB ). -dain On Sep 5, 2008, at 5:12 AM, Andreas Karalus wrote: hello, is there any possibililty to get openejb jndi binding to evaluate the org.jboss.annotantions.ejb.LocalBinding annotations? thx in advice, andreas -- View this message in context: http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19328370.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: @LocalBinding with openejb
dain, thank you for your reply. The annotations are specific to jboss and provide the capability to override the default (local and/or remote) jndi binding behaviour (they are not mandatory). I created a feature request in jira. https://issues.apache.org/jira/browse/OPENEJB-908 regards, andreas Dain Sundstrom wrote: > > We could add something for that. Can you explain exactly how the > annotation is supposed to work? Are there other similar annotations > for stuff like remote interfaces? > > Also, if you have time, can you add a "New Feature" jira issue > (http://issues.apache.org/jira/browse/OPENEJB > ). > > -dain > > -- View this message in context: http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19360905.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: @LocalBinding with openejb
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 ? http://openejb.apache.org/3.0/jndi-names.html Regards, Jean-Louis Andreas Karalus wrote: > > dain, > > thank you for your reply. The annotations are specific to jboss and > provide the capability to override the default (local and/or remote) > jndi binding behaviour (they are not mandatory). > > I created a feature request in jira. > https://issues.apache.org/jira/browse/OPENEJB-908 > > regards, > andreas > > > Dain Sundstrom wrote: >> >> We could add something for that. Can you explain exactly how the >> annotation is supposed to work? Are there other similar annotations >> for stuff like remote interfaces? >> >> Also, if you have time, can you add a "New Feature" jira issue >> (http://issues.apache.org/jira/browse/OPENEJB >> ). >> >> -dain >> >> > > -- View this message in context: http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19368173.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: @LocalBinding with openejb
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 "openejb.jndiname.format". It is possible to override this for a specific ejb by the creating an openejb-jar.xml file like this 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 Example: @Stateless @Local(Foo.class) @LocalBinding(jndiName="foo") 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 > <[EMAIL PROTECTED]> 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 ? >> http://openejb.apache.org/3.0/jndi-names.html >> >> Regards, >> Jean-Louis >> > > -- View this message in context: http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19369827.html Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: @LocalBinding with openejb
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 <[EMAIL PROTECTED]> 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 ? > http://openejb.apache.org/3.0/jndi-names.html > > Regards, > Jean-Louis > > > > Andreas Karalus wrote: >> >> dain, >> >> thank you for your reply. The annotations are specific to jboss and >> provide the capability to override the default (local and/or remote) >> jndi binding behaviour (they are not mandatory). >> >> I created a feature request in jira. >> https://issues.apache.org/jira/browse/OPENEJB-908 >> >> regards, >> andreas >> >> >> Dain Sundstrom wrote: >>> >>> We could add something for that. Can you explain exactly how the >>> annotation is supposed to work? Are there other similar annotations >>> for stuff like remote interfaces? >>> >>> Also, if you have time, can you add a "New Feature" jira issue >>> (http://issues.apache.org/jira/browse/OPENEJB >>> ). >>> >>> -dain >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19368173.html > Sent from the OpenEJB User mailing list archive at Nabble.com. > > -- Thanks - Mohammad Nour