Hey Guys
I am getting following error when i am using following method
public static Object getHomeReference(String objectName) throws Exception
{
java.util.Hashtable environment = new java.util.Hashtable();
environment.put("java.naming.factory.initial", "org.jnp.interface.NamingContextFactory");
environment.put("java.naming.provider.url","jnp://localhost:1099/");
environment.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interface");
javax.naming.InitialContext context = new javax.naming.InitialContext(environment);
Object homeObjRef = context.lookup(objectName);
return homeObjRef;
}
Error:
java.lang.ClassNotFoundException: org.jnp.interface.NamingContextFactory
can you please help me in this
Thanks
KPK
If this is from a client external to jboss you need the jboss/client/jars on your classpath