1 |
+ |
/* |
2 |
+ |
* i-scream central monitoring system |
3 |
+ |
* http://www.i-scream.org.uk |
4 |
+ |
* Copyright (C) 2000-2002 i-scream |
5 |
+ |
* |
6 |
+ |
* This program is free software; you can redistribute it and/or |
7 |
+ |
* modify it under the terms of the GNU General Public License |
8 |
+ |
* as published by the Free Software Foundation; either version 2 |
9 |
+ |
* of the License, or (at your option) any later version. |
10 |
+ |
* |
11 |
+ |
* This program is distributed in the hope that it will be useful, |
12 |
+ |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
+ |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
+ |
* GNU General Public License for more details. |
15 |
+ |
* |
16 |
+ |
* You should have received a copy of the GNU General Public License |
17 |
+ |
* along with this program; if not, write to the Free Software |
18 |
+ |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 |
+ |
*/ |
20 |
|
|
21 |
+ |
|
22 |
|
//---PACKAGE DECLARATION--- |
23 |
|
package uk.org.iscream.cms.server.rootfilter; |
24 |
|
|
94 |
|
ClientInterface ciReal = null, ciDB = null; |
95 |
|
// get reference to the client interfaces - the real time one |
96 |
|
if (realInterface != null) { |
97 |
< |
ciReal = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + realInterface)); |
97 |
> |
ciReal = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface\\." + realInterface)); |
98 |
|
} |
99 |
|
// get reference to the client interfaces - and the db one |
100 |
|
if (dbInterface != null) { |
101 |
< |
ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + dbInterface)); |
101 |
> |
ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface\\." + dbInterface)); |
102 |
|
} |
103 |
|
|
104 |
|
// setup a queue |
161 |
|
_logger.write(toString(), Logger.DEBUG, "starting Root Filter"); |
162 |
|
RootFilterServant filterServant = new RootFilterServant(queue); |
163 |
|
// bind to the naming service as a filter |
164 |
< |
_refman.bindToOrb(filterServant, "iscream.Filter." + RootFilter.NAME); |
164 |
> |
_refman.bindToOrb(filterServant, "iscream.Filter\\." + RootFilter.NAME); |
165 |
|
|
166 |
|
_logger.write(toString(), Logger.SYSINIT, "started"); |
167 |
|
|
194 |
|
// first check the client interface |
195 |
|
try { |
196 |
|
String cli = cp.getProperty("RootFilter", "RootFilter.realtimeInterfaceName"); |
197 |
< |
obj = _refman.getCORBARef("iscream.ClientInterface." + cli); |
197 |
> |
obj = _refman.getCORBARef("iscream.ClientInterface\\." + cli); |
198 |
|
} catch(ComponentCORBAException e) { |
199 |
|
System.err.println(toString() + ": Dependency Failure: "+e); |
200 |
|
return false; |
204 |
|
// second check the database interface |
205 |
|
try { |
206 |
|
String dbi = cp.getProperty("RootFilter", "RootFilter.dbInterfaceName"); |
207 |
< |
obj = _refman.getCORBARef("iscream.ClientInterface." + dbi); |
207 |
> |
obj = _refman.getCORBARef("iscream.ClientInterface\\." + dbi); |
208 |
|
} catch(ComponentCORBAException e) { |
209 |
|
System.err.println(toString() + ": Dependency Failure: "+e); |
210 |
|
return false; |