summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1482_Regression/Reply_Handler.cpp
blob: 4cf7b821414d9f3ca0444be766e131acbcbf8caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "Reply_Handler.h"

Reply_Handler::Reply_Handler (CORBA::ORB_ptr o)
  : orb_ (CORBA::ORB::_duplicate (o))
{
}

void
Reply_Handler::next_prime (CORBA::ULong)
{
}

void
Reply_Handler::next_prime_excep (
    ::Messaging::ExceptionHolder *ex)
{
  try
    {
      ex->raise_exception ();
    }
  catch (const CORBA::COMM_FAILURE& )
    {
      /*ACE_DEBUG ((LM_DEBUG,
                  "Callback method <next_prime_excep> called:\n"));
                  */

      ACE_Time_Value tv (10, 0);
      this->orb_->run (tv);

      this->orb_->shutdown (false);
    }
  catch (const CORBA::Exception& ex)
    {
      ex._tao_print_exception ("Caught exception:");
    }
}