Update of /var/cvs/applications/rmmci/src/org/mmbase/module
In directory james.mmbase.org:/tmp/cvs-serv21383

Modified Files:
      Tag: MMBase-1_8
        RemoteMMCI.java 
Log Message:
  MMB-1691


See also: http://cvs.mmbase.org/viewcvs/applications/rmmci/src/org/mmbase/module
See also: http://www.mmbase.org/jira/browse/MMB-1691


Index: RemoteMMCI.java
===================================================================
RCS file: /var/cvs/applications/rmmci/src/org/mmbase/module/RemoteMMCI.java,v
retrieving revision 1.15.2.3
retrieving revision 1.15.2.4
diff -u -b -r1.15.2.3 -r1.15.2.4
--- RemoteMMCI.java     22 Oct 2007 08:56:57 -0000      1.15.2.3
+++ RemoteMMCI.java     22 Jul 2008 15:09:40 -0000      1.15.2.4
@@ -28,7 +28,7 @@
  * options. Note that in the configuration of mmbaseroot.xml the host should 
be a valid
  * host address if the RMIRegistryServer in rmmci.xml is no set.
  * @author Kees Jongenburger <[EMAIL PROTECTED]>
- * @version $Id: RemoteMMCI.java,v 1.15.2.3 2007/10/22 08:56:57 nklasens Exp $
+ * @version $Id: RemoteMMCI.java,v 1.15.2.4 2008/07/22 15:09:40 michiel Exp $
  * @since MMBase-1.5
  */
 public class RemoteMMCI extends ProcessorModule {
@@ -55,17 +55,22 @@
     public void init() {
         super.init(); // is this required?
         loadInitParameters("mmbase/rmmci");
-        log.debug("Module RemoteMMCI starting");
+        log.info("Module RemoteMMCI starting");
 
         int registryPort = getPort();
+        if (registryPort == -1) {
+            log.service("Not creating RemoteRMMCI, because registry port is 
-1");
+        } else {
         int stubPort = getStubPort(registryPort);
         String host = getHost();
         String bindName = getBindName();
+            log.error("Will create rmmci on " + host + ":" + registryPort + 
"/" + bindName);
         createRemoteMMCI(host, registryPort, bindName, stubPort);
         log.info("RemoteMMCI registry listening on rmi://" + host + ":" + 
registryPort + "/" + bindName);
         log.info("RemoteMMCI stubs listening on rmi://" + host + ":" + 
stubPort);
         startChecker(this);
     }
+    }
 
     public String getBindName() {
         String bindName = DEFAULT_BIND_NAME;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to