In the following code, I could get reference to the stateless session bean "CalculatorBean", but if the bean is stefull, I could not get a reference to it using the same JNDI settings, how should I change the following code in order to be able to get a reference to the statefull bean? I am using
Jboss Thanks
Properties props = new Properties();
props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
props.put("java.naming.factory.url.pkgs","org.jboss.naming

rg.jnp.interfaces");
props.put("java.naming.provider.url","localhost:1099");
InitialContext ic = new InitialContext(props);
CalculatorRemote calculator = (CalculatorRemote) ic.lookup("example/CalculatorBean/remote");