[jboss-user] [EJB 3.0 Users] - Lookup for a session bean if only the interface is given

Juergen.Zimmermann do-not-reply at jboss.com
Fri Nov 13 07:18:17 EST 2009

I have to emulate @EJB and just know an interface. How can I obtain a session bean? I can assume that the session bean comes out of an EAR so that the JNDI name is myEAR/myBeanClass/local or .../remote.

Shall I compute the EAR name via the classloader and then navigate through the JNDI tree looking for classes that implement the given interface? Perhaps there is an easier way. Any hint is appreciated!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265481#4265481

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265481

More information about the jboss-user mailing list