summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Linear_Priority/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/RTCORBA/Linear_Priority/server.cpp')
-rw-r--r--TAO/tests/RTCORBA/Linear_Priority/server.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/TAO/tests/RTCORBA/Linear_Priority/server.cpp b/TAO/tests/RTCORBA/Linear_Priority/server.cpp
index c48b57143ca..e551c2583a5 100644
--- a/TAO/tests/RTCORBA/Linear_Priority/server.cpp
+++ b/TAO/tests/RTCORBA/Linear_Priority/server.cpp
@@ -15,11 +15,9 @@ public:
test_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa);
- void method (void)
- ACE_THROW_SPEC ((CORBA::SystemException));
+ void method (void);
- void shutdown (void)
- ACE_THROW_SPEC ((CORBA::SystemException));
+ void shutdown (void);
PortableServer::POA_ptr _default_POA (void);
@@ -38,7 +36,6 @@ test_i::test_i (CORBA::ORB_ptr orb,
void
test_i::method (void)
- ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG,
"test_i::method\n"));
@@ -46,7 +43,6 @@ test_i::method (void)
void
test_i::shutdown (void)
- ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG,
"test_i::shutdown\n"));
@@ -230,8 +226,13 @@ Task::svc (void)
PortableServer::ServantBase_var safe_servant (servant);
+ PortableServer::ObjectId_var id =
+ poa->activate_object (servant);
+
+ CORBA::Object_var object_act = poa->id_to_reference (id.in ());
+
test_var test =
- servant->_this ();
+ test::_narrow (object_act.in ());
write_iors_to_file (test.in (),
this->orb_.in (),