3 #include "orbsvcs/PortableGroup/PG_Property_Set.h"
5 Basic::Basic (CORBA::Object_ptr object_group
,
6 FT_Naming::NamingManager_ptr lm
,
9 : object_group_name_ ("Basic Group"), orb_ (CORBA::ORB::_duplicate (orb
))
11 this->object_group_
= CORBA::Object::_duplicate (object_group
);
12 this->nm_
= FT_Naming::NamingManager::_duplicate (lm
);
13 this->location_
= CORBA::string_dup (loc
);
19 return CORBA::string_dup (this->location_
.in ());
23 Basic::remove_member ()
27 PortableGroup::Location
location (1);
29 location
[0].id
= CORBA::string_dup (this->location_
.in ());
31 this->nm_
->remove_member (this->object_group_
.in (),
34 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) - Removed Member at Location <%C>\n",
35 this->location_
.in ()));
37 catch (const PortableGroup::ObjectNotFound
& ex
)
39 ex
._tao_print_exception ("Caught exception in remove_member");
40 throw CORBA::INTERNAL ();
42 catch (const PortableGroup::MemberNotFound
& ex
)
44 ex
._tao_print_exception ("Caught exception in remove_member");
45 throw CORBA::INTERNAL ();
47 catch (const CORBA::Exception
& ex
)
49 ex
._tao_print_exception ("Exception caught while destroying member\n");
58 this->orb_
->shutdown (false);