summaryrefslogtreecommitdiff
path: root/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Portable_Interceptors/AdvSlot/server.cpp')
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlot/server.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp b/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp
index 6c5f5825295..98da1770179 100644
--- a/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp
+++ b/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp
@@ -162,7 +162,12 @@ main (int argc, char *argv[])
StateTransferImpl* impl = new StateTransferImpl (orb.in ());
ServantBase_var impl_var (impl);
- StateTransfer_var ref (impl->_this ());
+ PortableServer::ObjectId_var id_act =
+ root_poa->activate_object (impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id_act.in ());
+
+ StateTransfer_var ref = StateTransfer::_narrow (object.in ());
String_var ior (orb->object_to_string (ref.in ()));
poa_manager->activate ();