geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r497505 - /geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
Date Thu, 18 Jan 2007 17:21:39 GMT
Author: jgenender
Date: Thu Jan 18 09:21:39 2007
New Revision: 497505

URL: http://svn.apache.org/viewvc?view=rev&rev=497505
Log:
Allow RMIRegistryService to have the host set as an attribute

Modified:
    geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java

Modified: geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java?view=diff&rev=497505&r1=497504&r2=497505
==============================================================================
--- geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
(original)
+++ geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
Thu Jan 18 09:21:39 2007
@@ -35,6 +35,7 @@
 public class RMIRegistryService implements GBeanLifecycle {
     private static final Log log = LogFactory.getLog(RMIRegistryService.class);
     private int port = Registry.REGISTRY_PORT;
+    private String host = "0.0.0.0";
     private Registry registry;
 
     public int getPort() {
@@ -46,7 +47,11 @@
     }
 
     public String getHost() {
-        return "0.0.0.0";
+        return host;
+    }
+
+    public void setHost(String host) {
+        this.host = host;
     }
 
     public String getProtocol() {
@@ -80,7 +85,7 @@
 
     static {
         GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic("RMI Naming", RMIRegistryService.class);
-        infoFactory.addAttribute("host", String.class, false);
+        infoFactory.addAttribute("host", String.class, true, true);
         infoFactory.addAttribute("protocol", String.class, false);
         infoFactory.addAttribute("port", int.class, true, true);
         infoFactory.addAttribute("listenAddress", InetSocketAddress.class, false);



Mime
View raw message