blob: c1532a2eb86b15f1a9f33385583494d14a6e1c9e (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//
// $Id$
//
#include "Manager_Handler.h"
ACE_RCSID(LongUpcalls, Manager_Handler, "$Id$")
Manager_Handler::Manager_Handler (Test::Manager_ptr manager,
Test::Controller_ptr controller)
: manager_ (Test::Manager::_duplicate (manager))
, controller_ (Test::Controller::_duplicate (controller))
{
}
void
Manager_Handler::start_workers (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
this->manager_->start_workers (CORBA::Short(10),
CORBA::Long(1000),
this->controller_.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
"Exception raised in nested start workers: ");
}
ACE_ENDTRY;
}
void
Manager_Handler::start_workers_excep (::Messaging::ExceptionHolder * holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
"Exception raised in asynch start workers: ");
}
ACE_ENDTRY;
}
|