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 18:21:39 UTC
svn commit: r497505 -
/geronimo/server/branches/1.2/modules/geronimo-system/src/main/java/org/apache/geronimo/system/rmi/RMIRegistryService.java
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);