42 |
|
_logger = _refman.getLogger(); |
43 |
|
|
44 |
|
_logger.write(toString(), Logger.SYSINIT, "coming up"); |
45 |
– |
|
46 |
– |
// configuration variables we require |
47 |
– |
int queueMonitorInterval = 0; |
45 |
|
|
49 |
– |
Configuration config = _refman.getCM().getConfiguration("LocalClient"); |
50 |
– |
if (config == null) { |
51 |
– |
throw new ComponentStartException("Unable to obtain configuration for component"); |
52 |
– |
} |
53 |
– |
else { |
54 |
– |
try { |
55 |
– |
// get the configuration properties we need |
56 |
– |
queueMonitorInterval = Integer.parseInt(config.getProperty("Queue.MonitorInterval")); |
57 |
– |
} catch (org.omg.CORBA.MARSHAL e) { |
58 |
– |
throw new ComponentStartException("Unable to obtain requried configuration property for component"); |
59 |
– |
} |
60 |
– |
} |
61 |
– |
|
62 |
– |
_logger.write(toString(), Logger.SYSINIT, "configured"); |
63 |
– |
|
46 |
|
// setup the queues, this must be done before both managers are setup |
65 |
– |
String queueName; |
47 |
|
// setup a Queue for the servant -> monitor manager |
48 |
|
_monitorQueue = new Queue(); |
68 |
– |
|
49 |
|
// setup a Queue for the monitors -> alert manager |
50 |
|
_alerterQueue = new Queue(); |
71 |
– |
|
72 |
– |
|
51 |
|
|
52 |
|
// setup the servant and connect |
53 |
|
_logger.write(toString(), Logger.SYSINIT, "starting servant and connecting"); |