2 #include "tid_to_int.h"
3 #include "tao/ORB_Core.h"
4 #include "tao/ORB_Table.h"
5 #include "tao/ORB_Core_Auto_Ptr.h"
7 EventNode::EventNode (CORBA::ORB_ptr orb
, ACE_thread_t thrid
)
8 : orb_ (CORBA::ORB::_duplicate (orb
))
13 void EventNode::registerHello (::Test::Hello_ptr h
)
16 "(%P|%t) EventNode: registerHello will call get_string...\n"));
18 if (ACE_Thread::self () == this->thr_id_
)
20 if (this->orb_
->orb_core ()->optimize_collocation_objects () &&
21 this->orb_
->orb_core ()->use_global_collocation ())
24 "(%P|%t) ERROR: A remote call has been made "
28 else if (this->orb_
->orb_core ()->optimize_collocation_objects () &&
29 this->orb_
->orb_core ()->use_global_collocation () == 0)
31 TAO::ORB_Table
* const orb_table
=
32 TAO::ORB_Table::instance ();
34 TAO_ORB_Core_Auto_Ptr
tmp (orb_table
->find ("server_orb"));
35 if (tmp
.get () == nullptr)
37 // We are running on a single ORB and this is an error.
39 "(%P|%t) ERROR: A remote call has been made "
47 CORBA::String_var str
= h
->get_string(
48 ACE_thread_t_to_integer
< ::Test::ThreadId
> (ACE_Thread::self ()));
50 "(%P|%t) - EventNode: string returned <%C>\n",
55 EventNode::shutdown ()
57 this->orb_
->shutdown (false);