diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-04 19:43:46 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-04 19:43:46 +0000 |
commit | b5cfcf6357cbd9d0ec1a333e689915ef10b2a4c3 (patch) | |
tree | 8d387a305150c2802ef2381aea0e6770c889f2be /TAO/tests/Param_Test/server.cpp | |
parent | 1e34458c51905bb20aec21de4cd7dd9ae074c662 (diff) | |
download | ATCD-b5cfcf6357cbd9d0ec1a333e689915ef10b2a4c3.tar.gz |
ChangeLogTag:Fri Jun 4 14:40:48 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tests/Param_Test/server.cpp')
-rw-r--r-- | TAO/tests/Param_Test/server.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/TAO/tests/Param_Test/server.cpp b/TAO/tests/Param_Test/server.cpp index 64d0ad6c230..2ef36e16eb7 100644 --- a/TAO/tests/Param_Test/server.cpp +++ b/TAO/tests/Param_Test/server.cpp @@ -64,14 +64,14 @@ main (int argc, char *argv[]) ACE_DECLARE_NEW_CORBA_ENV; ACE_TRY { - char *orb_name = "internet"; // unused by TAO + char *orb_name = "internet"; + CORBA::ORB_var orb_ptr = + CORBA::ORB_init (argc, argv, orb_name, ACE_TRY_ENV); + ACE_TRY_CHECK; + CORBA::Object_var temp; // holder for the myriad of times we get // an object which we then have to narrow. - // get the underlying ORB - CORBA::ORB_var orb_ptr = CORBA::ORB_init (argc, argv, orb_name, ACE_TRY_ENV); - ACE_TRY_CHECK; - // Get the Root POA temp = orb_ptr->resolve_initial_references ("RootPOA"); @@ -112,7 +112,9 @@ main (int argc, char *argv[]) // adapter // Create the implementation object - ACE_NEW_RETURN (param_test, Param_Test_i ("unknown"), 1); + ACE_NEW_RETURN (param_test, + Param_Test_i ("unknown", + orb_ptr.in ()), 1); // Register with GoodPOA with a specific name PortableServer::ObjectId_var id = @@ -140,7 +142,7 @@ main (int argc, char *argv[]) ACE_OS::fprintf (ior_output_file, "%s", str.in()); ACE_OS::fclose (ior_output_file); } - + // Make the POAs controlled by this manager active poa_manager->activate (ACE_TRY_ENV); |