summaryrefslogtreecommitdiff
path: root/TAO/examples/Buffered_Oneways/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Buffered_Oneways/client.cpp')
-rw-r--r--TAO/examples/Buffered_Oneways/client.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/TAO/examples/Buffered_Oneways/client.cpp b/TAO/examples/Buffered_Oneways/client.cpp
index fa8531655df..f3c41136d34 100644
--- a/TAO/examples/Buffered_Oneways/client.cpp
+++ b/TAO/examples/Buffered_Oneways/client.cpp
@@ -131,19 +131,10 @@ main (int argc, char **argv)
if (parse_args_result != 0)
return parse_args_result;
- CORBA::Object_var base =
- orb->resolve_initial_references ("RootPOA",
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (base.in (),
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Get an object reference from the argument string.
- base = orb->string_to_object (IOR,
- ACE_TRY_ENV);
+ CORBA::Object_var base =
+ orb->string_to_object (IOR,
+ ACE_TRY_ENV);
ACE_TRY_CHECK;
// Try to narrow the object reference to a <test> reference.
@@ -335,11 +326,6 @@ main (int argc, char **argv)
buffering_flush_policy_list[0]->destroy (ACE_TRY_ENV);
ACE_TRY_CHECK;
- root_poa->destroy (1,
- 1,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Destroy the ORB. On some platforms, e.g., Win32, the socket
// library is closed at the end of main(). This means that any
// socket calls made after main() fail. Hence if we wait for