ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilter.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilter.java (file contents):
Revision 1.10 by ajm, Tue Dec 12 19:54:55 2000 UTC vs.
Revision 1.12 by ajm, Tue Dec 12 20:59:03 2000 UTC

# Line 68 | Line 68 | public class RootFilter implements uk.ac.ukc.iscream.u
68          _logger.write(toString(), Logger.SYSINIT, "configured");
69                  
70          // get reference to the client interfaces - the real time one
71 <        ClientInterface ciReal = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + realInterface));
71 >        if (realInterface != null) {
72 >            ClientInterface ciReal = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + realInterface));
73 >        }
74          // get reference to the client interfaces - and the db one
75 <        ClientInterface ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + dbInterface));
76 <        _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + realInterface + " & " + dbInterface);
77 <        
78 <        ClientInterface[] clientInterfaces = {ciReal, ciDB};
75 >        if (dbInterface != null) {
76 >            ClientInterface ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + dbInterface));
77 >        }
78 >
79 >        ClientInterface[] clientInterfaces;
80 >        if (realInterface == null) {        
81 >            _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + dbInterface);
82 >            clientInterfaces = {ciDB};
83 >        } else if (dbInterface == null) {
84 >            _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + realInterface);
85 >            clientInterfaces = {ciReal};
86 >        } else {
87 >            _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + realInterface + " & " + dbInterface);
88 >            clientInterfaces = {ciReal, ciDB};
89 >        }
90          
91          // RootFilterServant start (for inbound child filter data)
92          _logger.write(toString(), Logger.DEBUG, "starting Root Filter");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines