I adjusted my client code to the following:

       Hashtable environment = new Hashtable();

        environment.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
        environment.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
        environment.put(Context.PROVIDER_URL, "jnp://localhost:1099");
       InitialContext ctx = new InitialContext(environment);
       cal = (ApptransCalculatorLocal) ctx.lookup(
                   "ejb1/ApptransCalculator/local");

But it still returns null as cal



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982031
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to