env.put("java.naming.factory.initial",
"com.sun.jndi.cosnaming.CNCtxFactory");
InitialContext ic = new InitialContext(env);
Reference ref = (Reference) obj;
if(debug) {
/** IASRI 4660742
System.out.println("IIOPObjectFactory " + ref +
" Name:" + name);
**/
// START OF IASRI 4660742
if(_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE,"IIOPObjectFactory " + ref +
" Name:" + name);
}
// END OF IASRI 4660742
}
RefAddr refAddr = ref.get("url");
Object realObject = ic.lookup((String) refAddr.getContent());
if(debug) {
/** IASRI 4660742
System.out.println("Found Object:" + realObject);
**/
// START OF IASRI 4660742
if(_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE,"Found Object:" + realObject);
}
// END OF IASRI 4660742
}
return realObject;