JBoss Community

Remote and local annotation, JNDI reference resolving

created by Pasquale Imbemba in EJB3 - View the full discussion

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.

 

thanks

~pasquale

Reply to this message by going to Community

Start a new discussion in EJB3 at Community