Adapter a = new Adapter();
a.setBindName( "NameService" );
a.setRemoteClassName( "gcc.rmi.iiop.server.ServerNamingContext" );
a.setRemoteInterfaceName( "gcc.rmi.iiop.NameServiceOperations" );
a.setShared( true );
a.addId( "IDL:gcc/rmi/iiop/NameService:1.0" );
a.addId( "IDL:omg.org/CosNaming/NamingContext:1.0" );
a.addId( "IDL:omg.org/CosNaming/NamingContextExt:1.0" );
a.addId( "NameService" ); // this gets passed in by the J2SE 1.4 ORB
a.setClassLoader( id.getClass().getClassLoader() );
//a.generateSkels();