Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Bug_2186_Regression / Hello.cpp
blob2bf8ddb2538b7082bc7f072d288430151f6d5497
1 #include "Hello.h"
3 Hello::Hello (CORBA::ORB_ptr orb)
4 : orb_ (CORBA::ORB::_duplicate (orb))
8 char *
9 Hello::get_string ()
11 ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Received call back !!!\n"));
12 return CORBA::string_dup ("Hello there!");
15 void
16 Hello::shutdown ()
18 this->orb_->shutdown (false);
21 void
22 Hello::request_callback (Test::Hello_ptr call_me)
24 ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Making call back !!!\n"));
25 try
27 CORBA::String_var result = call_me->get_string ();
29 catch (const CORBA::Exception& ex)
31 ex._tao_print_exception (
32 "Exception attempting to callback client obj ref:\n");
33 throw;
35 ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Call back succeeded !!!\n"));