This content has been marked as final. Show 2 replies
why not performing a JNDI lookup?
InitialContext initialContext = new InitialContext(); Object objLookup = initialContext.lookup ("earName/BeanName/remote"); MySfsbRemote newInstanc= (MySfsbRemote)objLookup;
If you use an application client, you will have to configure JNDI through "jndi.properties", but I hope that this gives you a basic idea.
I had actually hoped to get it by type (in order to have a typesafe, refactoring-friendly lookup like with @EJB injection) but it's definitely a good solution.
Thanks very much!