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");
Context ctx = new InitialContext();
Object ref = ctx.lookup("Usertest");
UsertestHome uth = (UsertestHome)PortableRemoteObject.narrow(ref,UsertestHome.class);
Usertest ut = uth.create();