1 package org.jacorb.test.bugs.bug384; 2 3 22 23 import org.omg.CORBA.*; 24 import org.omg.PortableServer.*; 25 26 public class BImpl extends BPOA 27 { 28 public BImpl() 29 { 30 } 31 32 public static void main(String [] args) 33 { 34 System.setProperty ("jacorb.implname", "BImpl"); 35 36 if( args.length != 0 ) 37 { 38 System.out.println( 39 "Usage: jaco org.jacorb.test.bugs.bug384.BImpl"); 40 System.exit( 1 ); 41 } 42 43 try 44 { 45 ORB orb = ORB.init( args, null ); 47 48 POA poa = 50 POAHelper.narrow( orb.resolve_initial_references( "RootPOA" )); 51 52 poa.the_POAManager().activate(); 53 54 BImpl s = new BImpl(); 55 56 org.omg.CORBA.Object obj = 58 poa.servant_to_reference( s ); 59 60 String ior = orb.object_to_string( obj ); 61 62 System.out.println( "IOR is " + ior ); 63 64 } 67 catch( Exception e ) 68 { 69 System.out.println( e ); 70 } 71 } 72 } 73 | Popular Tags |