[jboss-user] [EJB3] - Remote and local annotation, JNDI reference resolving

Pasquale Imbemba do-not-reply at jboss.com
Thu Feb 2 04:26:42 EST 2012

Pasquale Imbemba [https://community.jboss.org/people/pi4630] created the discussion

"Remote and local annotation, JNDI reference resolving"

To view the discussion, visit: https://community.jboss.org/message/713944#713944

Suppose I have two jars, JarFoo and JarBar.

JarFoo has two interfaces: IFooLocal and IFooRemote. IFooRemote extends IFooLocal. JarFoo contains a SLSB (FooBean) that implements both.

JarBar has a SLSB itself that intends to use FooBean. 
Now does JNDI support a "smart" way to do the lookup, i.e. a lookup via interface and finding the bean that implements the local one and thus returning a reference to it? So to say "local over remote"?
Is there a way to do a JNDI lookup by interface (if the interface itself is sufficient to identify the reference)?

I'm trying this on AS 6.


Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120202/01c7e0b0/attachment.html 

More information about the jboss-user mailing list