You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jg...@apache.org on 2007/01/18 19:25:05 UTC
svn commit: r497523 -
/geronimo/server/branches/1.1/modules/system/src/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
Author: jgenender
Date: Thu Jan 18 10:25:05 2007
New Revision: 497523
URL: http://svn.apache.org/viewvc?view=rev&rev=497523
Log:
Allow RMIRegistryService to have the host set as an attribute
Modified:
geronimo/server/branches/1.1/modules/system/src/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
Modified: geronimo/server/branches/1.1/modules/system/src/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.1/modules/system/src/java/org/apache/geronimo/system/rmi/RMIRegistryService.java?view=diff&rev=497523&r1=497522&r2=497523
==============================================================================
--- geronimo/server/branches/1.1/modules/system/src/java/org/apache/geronimo/system/rmi/RMIRegistryService.java (original)
+++ geronimo/server/branches/1.1/modules/system/src/java/org/apache/geronimo/system/rmi/RMIRegistryService.java Thu Jan 18 10:25:05 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);