3 #include "tao/ORB_Core.h"
5 #include "tao/Transport_Cache_Manager.h"
6 #include "tao/Thread_Lane_Resources.h"
8 #if !defined(__ACE_INLINE__)
10 #endif /* __ACE_INLINE__ */
13 Callback_i::shutdown ()
15 ACE_DEBUG ((LM_DEBUG
, "Performing clean shutdown\n"));
16 this->orb_
->shutdown (false);
20 Callback_i::callback_method (/**/)
22 if (TAO_debug_level
> 0)
23 ACE_DEBUG ((LM_DEBUG
, "Callback method called\n"));
27 // ****************************************************************
30 Simple_Server_i::test_method (CORBA::Boolean do_callback
42 Simple_Server_i::callback_object (Callback_ptr callback
45 // Store the callback object
46 this->callback_
= Callback::_duplicate (callback
);
50 Simple_Server_i::call_client ()
54 for (int times
= 0; times
< this->no_iterations_
; ++times
)
56 this->callback_
->callback_method ();
58 // If the cache size has gotten larger this indicates that
59 // the connection isn't being shared properly, i.e., a new
60 // connection was created, so we'll abort.
61 if (this->orb_
->orb_core ()->lane_resources ().transport_cache ().current_size () > 1)
64 "(%P|%t) The cache has grown, aborting ..\n"));
70 this->callback_
->shutdown ();
81 Simple_Server_i::shutdown ()
83 this->orb_
->shutdown (false);