[jboss-user] [Beginner's Corner] - Re: Create Stateful Session Bean programmatically?

Wolfgang Knauf do-not-reply at jboss.com
Wed Oct 14 07:56:26 EDT 2009


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

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

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



More information about the jboss-user mailing list