summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp')
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp24
1 files changed, 5 insertions, 19 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
index 753562725ee..35c63baf9f2 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
@@ -1,7 +1,6 @@
// $Id$
#include "nestea_server_i.h"
-#include "tao/IORTable/IORTable.h"
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
@@ -180,6 +179,11 @@ Nestea_Server_i::init (int argc, char** argv, CORBA::Environment &ACE_TRY_ENV)
ACE_TRY_ENV);
ACE_TRY_CHECK;
+ // Register our poa_name with INS also, so we can get simplified
+ // requests.
+ this->orb_->_tao_add_to_IOR_table (poa_name, server_obj.in ());
+
+
// Create an IOR from the server object.
CORBA::String_var server_str =
this->orb_->object_to_string (server_obj.in (),
@@ -189,24 +193,6 @@ Nestea_Server_i::init (int argc, char** argv, CORBA::Environment &ACE_TRY_ENV)
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG, "The IOR is: <%s>\n", server_str.in ()));
- CORBA::Object_var table_object =
- this->orb_->resolve_initial_references ("IORTable",
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- IORTable::Table_var adapter =
- IORTable::Table::_narrow (table_object.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- if (CORBA::is_nil (adapter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Nil IORTable\n"));
- }
- else
- {
- adapter->bind (poa_name, server_str.in (), ACE_TRY_ENV);
- ACE_TRY_CHECK;
- }
-
if (this->ior_output_file_)
{
ACE_OS::fprintf (this->ior_output_file_, "%s", server_str.in ());