blob: 1cdb4fc30871cc6c4b0fccffd1cc999bdbcea3d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "tao/Utils/Implicit_Deactivator.h"
#include "tao/PortableServer/Servant_Base.h"
ACE_RCSID (Utils,
Implicit_Deactivator,
"$Id$")
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO::Utils::Implicit_Deactivation_Functor::operator () (
PortableServer::ServantBase * servant) throw ()
{
try
{
PortableServer::POA_var poa (servant->_default_POA ());
PortableServer::ObjectId_var id (poa->servant_to_id (servant));
poa->deactivate_object (id.in());
}
catch (...)
{
// @@ Cannot let exceptions escape, yet we need to log them!
}
}
TAO_END_VERSIONED_NAMESPACE_DECL
|