156157158159160161162163164165166
a.setClassLoader( id.getClass().getClassLoader() ); //a.generateSkels(); //a.compileSkels(); am.registerAdapter( a ); ns.bindAdapter( a ); // // Component // a = new Adapter();
169170171172173174175176177178179
a.setRemoteInterfaceName( "mark.comps.Add" ); a.addId( "RMI:mark.comps.Add:0000000000000000" ); a.setClassLoader( id.getClass().getClassLoader() ); am.registerAdapter( a ); ns.bindAdapter( a ); // // Component // a = new Adapter();
182183184185186187188189
a.setRemoteInterfaceName( "mark.comps.Add2" ); a.addId( "RMI:mark.comps.Add2:0000000000000000" ); a.setClassLoader( id.getClass().getClassLoader() ); am.registerAdapter( a ); ns.bindAdapter( a ); } }