diff options
author | vzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-05-08 14:26:10 +0000 |
---|---|---|
committer | vzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-05-08 14:26:10 +0000 |
commit | bbc44ca771dc4c5efde7bcd7d35fde6e004a2d40 (patch) | |
tree | 0751ac38fcad4b6b8351b95e66ca25d5d2ff9148 /TAO/tests/DII_AMI_Forward | |
parent | b8e0feefe681b3285a3c0b5bace79b26e07dba3b (diff) | |
download | ATCD-bbc44ca771dc4c5efde7bcd7d35fde6e004a2d40.tar.gz |
ChangeLogTag: Fri May 8 14:23:07 UTC 2009 Vladimir Zykov <vz@prismtech.com>
Diffstat (limited to 'TAO/tests/DII_AMI_Forward')
-rw-r--r-- | TAO/tests/DII_AMI_Forward/orb_initializer.h | 6 | ||||
-rw-r--r-- | TAO/tests/DII_AMI_Forward/server_interceptor.cpp | 3 | ||||
-rw-r--r-- | TAO/tests/DII_AMI_Forward/server_interceptor.h | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/TAO/tests/DII_AMI_Forward/orb_initializer.h b/TAO/tests/DII_AMI_Forward/orb_initializer.h index 71bd1b9692d..d986912ddce 100644 --- a/TAO/tests/DII_AMI_Forward/orb_initializer.h +++ b/TAO/tests/DII_AMI_Forward/orb_initializer.h @@ -7,6 +7,7 @@ #define TAO_SERVER_ORB_INITIALIZER_H #include /**/ "ace/pre.h" +#include "tao/LocalObject.h" #include "tao/PI/PI.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) @@ -25,8 +26,9 @@ class ForwardTest_Request_Interceptor; #endif /* _MSC_VER */ /// Server ORB initializer. -class Server_ORBInitializer : - public virtual PortableInterceptor::ORBInitializer +class Server_ORBInitializer + : public virtual PortableInterceptor::ORBInitializer + , public virtual TAO_Local_RefCounted_Object { public: /// Constructor diff --git a/TAO/tests/DII_AMI_Forward/server_interceptor.cpp b/TAO/tests/DII_AMI_Forward/server_interceptor.cpp index 401a5683c9c..22af92ccf45 100644 --- a/TAO/tests/DII_AMI_Forward/server_interceptor.cpp +++ b/TAO/tests/DII_AMI_Forward/server_interceptor.cpp @@ -74,7 +74,8 @@ ForwardTest_Request_Interceptor::receive_request_service_contexts ( "Sending LOCATION_FORWARD, current thread %i\n", ACE_Thread::self ())); - throw PortableInterceptor::ForwardRequest (this->forward_location_); + throw PortableInterceptor::ForwardRequest ( + CORBA::Object::_duplicate (this->forward_location_)); } } diff --git a/TAO/tests/DII_AMI_Forward/server_interceptor.h b/TAO/tests/DII_AMI_Forward/server_interceptor.h index e2896065d24..8300f690343 100644 --- a/TAO/tests/DII_AMI_Forward/server_interceptor.h +++ b/TAO/tests/DII_AMI_Forward/server_interceptor.h @@ -53,7 +53,7 @@ public: bool forward_location_done() const; private: const char *myname_; - CORBA::Object_ptr forward_location_; + CORBA::Object_var forward_location_; bool forward_location_done_; }; |