With the POAHelper and POAHolder classes missing from the j2ee.jar file, how can I create the first rootPOA object?
First of all, these files aren’t “missing” from the JAR file. You obtain a reference to the rootPOA by creating the first rootPOA object as shown in the Java IDL tutorial, which can be found online at http://java.sun.com/j2se/1.4/docs/guide/idl/jidlExample.html: public static void main(String args[]) { try{ // create and initialize the ORB ORB orb = ORB.init(args, null); // get reference to rootpoa & activate the POAManager POA rootpoa = (POA)orb.resolve_initial_references(“RootPOA”); rootpoa.the_POAManager().activate(); // create servant and register it with the ORB HelloImpl helloImpl = new HelloImpl(); helloImpl.setORB(orb); // get object reference from the servant org.omg.CORBA.Object ref = rootpoa.servant_to_reference(helloImpl); Hello href = HelloHelper.narrow(ref); // …