// Proxy.java import IDLInterchange.*; import CosPropertyService.*; import ACM.*; import java.io.*; import java.net.*; public class Proxy { public static void main(String[] args) { // Initialize the ORB. org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null); // Initialize the BOA org.omg.CORBA.BOA boa = orb.BOA_init(); //Creating a Proxy (CConstrainCollection) ProxyImpl proxy = new ProxyImpl("Proxy", orb); boa.obj_is_ready(proxy); System.out.println("Created" + proxy); //Creating a CQuery CQueryImpl cquery = new CQueryImpl("aQueryObject"); boa.obj_is_ready(cquery); System.out.println("Created" + cquery); if ( args.length != 0 ) { //String url = "http://Eel:15000/ACMProxy.ior"; //try { // System.out.println("Resolving the url"); // com.visigenic.vbroker.URLNaming.Resolver resolver = // com.visigenic.vbroker.URLNaming.ResolverHelper.narrow( // orb.resolve_initial_references("URLNamingResolver")); // resolver.force_register_url(url,proxy); // url = "http://Eel:15000/CQuery.ior"; // System.out.println("Resolving the url"); // resolver.force_register_url(url,result); // Gerard, 2-5-98, new class which does that, naming.java naming.PublishInfobusCall("ACM", "dl/Users/testiiop/Services/Search", "IDL:IDLInterchange/CConstrainCollection:1.0", "IDLInterchange.CConstrainCollection", orb.object_to_string(proxy)); // Now we publish in Visigenic only the CQuery object, needed to // work with applets..... Needs work!!!! naming.PublishVisi(cquery, "CQuery", orb); //} //catch (Exception e) { // System.err.println(e); //} } // Wait for incoming requests boa.impl_is_ready(); } }