geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r738735 - /geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/RMIRegistryService.java
Date Thu, 29 Jan 2009 03:48:01 GMT
Author: gawor
Date: Thu Jan 29 03:48:01 2009
New Revision: 738735

URL: http://svn.apache.org/viewvc?rev=738735&view=rev
Log:
set java.rmi.server.hostname system property to the given host (GERONIMO-4518)

Modified:
    geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/RMIRegistryService.java

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/RMIRegistryService.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/RMIRegistryService.java?rev=738735&r1=738734&r2=738735&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/RMIRegistryService.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/rmi/RMIRegistryService.java
Thu Jan 29 03:48:01 2009
@@ -63,6 +63,9 @@
 
     public void doStart() throws Exception {
         System.setProperty("java.rmi.server.RMIClassLoaderSpi",RMIClassLoaderSpiImpl.class.getName());
+        if (System.getProperty("java.rmi.server.hostname") == null && host != null
&& !host.equals("0.0.0.0")) {
+            System.setProperty("java.rmi.server.hostname", host);
+        }
         RMIClientSocketFactory socketFactory = RMISocketFactory.getDefaultSocketFactory();
         RMIServerSocketFactory serverSocketFactory = new GeronimoRMIServerSocketFactory(host);
         registry = LocateRegistry.createRegistry(port, socketFactory, serverSocketFactory);



Mime
View raw message