2 #include "ace/OS_NS_unistd.h"
3 #include "ace/OS_NS_string.h"
6 test_i::test_i (CORBA::ORB_ptr orb
,
7 PortableServer::POA_ptr poa
,
9 : orb_ (CORBA::ORB::_duplicate (orb
))
10 ,poa_ (PortableServer::POA::_duplicate (poa
))
24 "(%P|%t) Upcall in process ..\n"));
25 // Use portable thread IDs
26 ACE_Thread_ID self_ID
;
27 // Thread ID from Server
28 ACE_Thread_ID this_ID
;
29 this_ID
.id(this->thr_id_
);
31 // Servant Thread ID same as Thread ID server, so a remote call,
32 // in case of a collocation the servant runs in calling thread (Client)
33 if (self_ID
== this_ID
)
36 "(%P|%t) ERROR: A remote call has been made "
43 "(%P|%t) OK: A collocated invocation has been made.\n"));
45 return CORBA::string_dup ("Hello there!");