Hello, I deployed a simple wasp webservice in JBoss-3.2.1, and i am trying to write a java standalone client app to access the webservice. and i failed during lookup... my code is as following:
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, urlAccess);
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
Context ctx = new InitialContext (env);
System.out.println("got ctx");
// get reference to the home object
ExampleServiceHome home = (ExampleServiceHome) javax.rmi.PortableRemoteObject.narrow(ctx.lookup("ExampleService"), ExampleServiceHome.class);
for the urlAccess, I am passing the servername only. Can anybody help? thanks in advance.