5 Replies Latest reply on Nov 17, 2009 9:10 AM by jaikiran

    Lookup for a session bean if only the interface is given

    juergen.zimmermann

      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!