summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1383_Regression/SimpleServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_1383_Regression/SimpleServer.cpp')
-rw-r--r--TAO/tests/Bug_1383_Regression/SimpleServer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/Bug_1383_Regression/SimpleServer.cpp b/TAO/tests/Bug_1383_Regression/SimpleServer.cpp
index c9de7d114bb..db025f79365 100644
--- a/TAO/tests/Bug_1383_Regression/SimpleServer.cpp
+++ b/TAO/tests/Bug_1383_Regression/SimpleServer.cpp
@@ -44,7 +44,12 @@ int main(int argc, char * argv[])
// it. It uses the "RootPOA" for dispatching its calls. There are
// a number of ways this can be done different. Refer to "Advanced
// CORBA Programming with C++" chapter 11 for more information.
- Simple_var simpleRef = simple->_this();
+ PortableServer::ObjectId_var id =
+ poa->activate_object (simple);
+
+ CORBA::Object_var object_act = poa->id_to_reference (id.in ());
+
+ Simple_var simpleRef = Simple::_narrow (object_act.in ());
advertise(orb.in(), simpleRef.in());