Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

With the POAHelper and POAHolder classes missing from the j2ee.jar file, how can I create the first rootPOA object?

classes create file MISSING object
0
Posted

With the POAHelper and POAHolder classes missing from the j2ee.jar file, how can I create the first rootPOA object?

0

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); // …

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123