diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-01-09 10:32:30 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-01-09 10:32:30 +0000 |
commit | c6e5359634f0e78fcf23106e668b116e96b07be9 (patch) | |
tree | eb402cd8d7c831aa6c2a7614c210ac29e79aedc2 /TAO/tao/PortableServer/Local_Servant_Base.inl | |
parent | 7836c49f2bae28f5302bd2b2955b58befac277e3 (diff) | |
download | ATCD-c6e5359634f0e78fcf23106e668b116e96b07be9.tar.gz |
ChangeLogTag: Sun Jan 9 10:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PortableServer/Local_Servant_Base.inl')
-rw-r--r-- | TAO/tao/PortableServer/Local_Servant_Base.inl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/Local_Servant_Base.inl b/TAO/tao/PortableServer/Local_Servant_Base.inl new file mode 100644 index 00000000000..e6ac4e794a4 --- /dev/null +++ b/TAO/tao/PortableServer/Local_Servant_Base.inl @@ -0,0 +1,31 @@ +// $Id$ + +ACE_INLINE TAO_Stub * +TAO_Local_ServantBase::_create_stub (ACE_ENV_SINGLE_ARG_DECL) +{ +#if 0 + PortableServer::ObjectId_var invalid_oid = + PortableServer::string_to_ObjectId ("invalid"); + + TAO::ObjectKey tmp_key (invalid_oid->length (), + invalid_oid->length (), + invalid_oid->get_buffer (), + 0); + + // It is ok to use TAO_ORB_Core_instance here since the locality + // constrained servant does not really register with a POA or get + // exported remotely. + // + // The correct thing to do is to probably use ORB of the default + // POA. The unfortunate part is that calling default_POA() requires + // the creation of a local stub, hence causing a infinite loop. + return TAO_ORB_Core_instance ()->orb ()->create_stub_object (tmp_key, + this->_interface_repository_id () + ACE_ENV_ARG_PARAMETER); +#else +# if !defined (ACE_HAS_EXCEPTIONS) + ACE_UNUSED_ARG (ACE_ENV_SINGLE_ARG_PARAMETER); +#endif + return 0; +#endif +} |