Hi,
I mean instead of using Properties,IntialContextFactory... and so on, how to do it with
EJB Refrence ?
Example : (Instead of the below code, how to lookup the bean directly using EJB Refrence)
Properties properties = new Properties();
properties.put("java.naming.factory.initial", "com.ibm.websphere.naming.WsnInitialContextFactory");
properties.put("java.naming.provider.url", "iiop://.....");
InitialContext initialcontext = new InitialContext(properties);
CartHome carthome = (CartHome)initialcontext.lookup("cartjndi");
Cart cart = carthome.create();
Cheers,
Sachin