// StreetServer.java import IDLInterchange.*; import CosPropertyService.*; import java.io.*; import java.net.*; // This class creates an ORB, initializes it, and it creates a proxy // object, which will be a DLIOPwrapper object class // To run the proxy type "java StreetServer" public class StreetServer { 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) DLIOPwrapper proxy = new DLIOPwrapper("Proxy", orb); boa.obj_is_ready(proxy); System.out.println("Created proxy workhorse: " + proxy); //Creating a query object used for issuing searches: CQueryImpl cquery = new CQueryImpl("aQueryObject"); boa.obj_is_ready(cquery); System.out.println("Created a query object: " + cquery); naming.Publish("/dl/Users/testiiop/Services/Search", "StreetRouterTutorial", proxy); // Wait for incoming requests System.out.println("Ready to serve street routes (tutorial)..."); boa.impl_is_ready(); } }