Beispiel #1
0
        static void Main(string[] args)
        {
            MiddTec.CORBA.ORB oOrb = MiddTec.CORBA._ORB.init(args, null);

            // Get the ROOT-POA
            MiddTec.PortableServer.POA oRootPOA
                = MiddTec.PortableServer.POAHelper.narrow(
                      oOrb.resolve_initial_references("RootPOA"));

            // Activate POA
            oRootPOA.the_POAManager.activate();

            // Our implementation of the Greetings Interface
            GreetingsImpl oGreetings = new GreetingsImpl();

            // Create CORBA object reference
            MiddTec.CORBA.Object obj = oRootPOA.servant_to_reference(oGreetings);

            // Write IOR-File
            MiddTec.CORBA._ORB.wrIORtoFile("c:\\hello.ior", obj);

            System.Console.WriteLine("Server is running ...\n");

            try
            {
                // Workup Requests
                oOrb.run();
            }
            catch (System.Exception)
            {
                // Destroy the ORB Resources
                oOrb.destroy();
            }
        }
Beispiel #2
0
 public GreetingsPOATie(GreetingsOperations impl, MiddTec.PortableServer.POA poa)
 {
     this._impl    = impl;
     this._poa_tie = poa;
 }
Beispiel #3
0
 public override string[] _all_interfaces(MiddTec.PortableServer.POA poa, byte[] objectId)
 {
     return(ids);
 }