This content has been marked as final.
Show 2 replies
-
1. Re: Create Stateful Session Bean programmatically?
wolfgangknauf Oct 14, 2009 7:56 AM (in response to mwx.dennis)Hi,
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.
Best regards
Wolfgang -
2. Re: Create Stateful Session Bean programmatically?
mwx.dennis Oct 14, 2009 8:19 AM (in response to mwx.dennis)Yeah, cool.
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!