3 Basic::Basic (CORBA::Object_ptr object_group
,
4 FT_Naming::NamingManager_ptr lm
,
7 : object_group_name_ ("BasicGroup"),
8 orb_ (CORBA::ORB::_duplicate (orb
))
10 this->object_group_
= CORBA::Object::_duplicate (object_group
);
11 this->nm_
= FT_Naming::NamingManager::_duplicate (lm
);
12 this->location_
= loc
;
18 return CORBA::string_dup (this->location_
.in ());
22 Basic::remove_member ()
26 PortableGroup::Location
location (1);
28 location
[0].id
= CORBA::string_dup (this->location_
.in ());
30 this->nm_
->remove_member (this->object_group_
.in (),
34 ACE_TEXT ("(%P|%t) - Removed Member at Location <%s>\n"),
35 this->location_
.in ()));
37 catch (const PortableGroup::ObjectNotFound
& ex
)
39 ex
._tao_print_exception (
40 ACE_TEXT ("Caught exception in remove_member"));
41 throw CORBA::INTERNAL ();
43 catch (const PortableGroup::MemberNotFound
& ex
)
45 ex
._tao_print_exception (
46 ACE_TEXT ("Caught exception in remove_member"));
47 throw CORBA::INTERNAL ();
49 catch (const CORBA::Exception
& ex
)
51 ex
._tao_print_exception (
52 ACE_TEXT ("Exception caught while destroying member\n"));
61 this->orb_
->shutdown (false);