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.14 by ajm, Wed Dec 13 15:46:22 2000 UTC vs.
Revision 1.15 by tdb, Tue Jan 2 03:19:37 2001 UTC

# Line 76 | Line 76 | public class RootFilter implements uk.ac.ukc.iscream.u
76          if (dbInterface != null) {
77              ciDB = ClientInterfaceHelper.narrow(_refman.getCORBARef("iscream.ClientInterface." + dbInterface));
78          }
79 <
80 <        ClientInterface[] clientInterfaces;
79 >        
80 >        Queue queue = new Queue();
81 >        
82          if (realInterface == null) {        
83              _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + dbInterface);
84 <            clientInterfaces = new ClientInterface[] {ciDB};
84 >            CIWrapper c = new CIWrapper(ciDB, queue);
85 >            c.start();
86          } else if (dbInterface == null) {
87              _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + realInterface);
88 <            clientInterfaces = new ClientInterface[] {ciReal};
88 >            CIWrapper c = new CIWrapper(ciReal, queue);
89 >            c.start();
90          } else {
91              _logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + realInterface + " & " + dbInterface);
92 <            clientInterfaces = new ClientInterface[] {ciReal, ciDB};
92 >            CIWrapper c = new CIWrapper(ciReal, queue);
93 >            c.start();
94 >            c = new CIWrapper(ciDB, queue);
95 >            c.start();
96          }
97 <        
97 >                
98          // RootFilterServant start (for inbound child filter data)
99          _logger.write(toString(), Logger.DEBUG, "starting Root Filter");
100 <        RootFilterServant filterServant = new RootFilterServant(clientInterfaces);
100 >        RootFilterServant filterServant = new RootFilterServant(queue);
101          // bind to the naming service as a filter
102          _refman.bindToOrb(filterServant, "iscream.Filter." + RootFilter.NAME);
103          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines