try {
prop.setProperty("javax.xml.registry.queryManagerURL", queryurl);
prop.setProperty("javax.xml.registry.lifeCycleManagerURL", queryurl);
prop.setProperty("javax.xml.registry.factoryClass",
"org.apache.juddi.jaxr.registry.ConnectionFactoryImpl");
ConnectionFactory factory = ConnectionFactoryImpl.newInstance();
factory.setProperties(prop);
Connection conn = factory.createConnection();
if (conn == null) System.out.println("No Connection");
} catch (Exception e) {
e.printStackTrace();
}//end catch
}//end main