Author: remy.maucherat(a)jboss.com
Date: 2008-04-28 09:00:31 -0400 (Mon, 28 Apr 2008)
New Revision: 596
Modified:
trunk/java/org/jboss/web/cluster/ClusterListener.java
Log:
- Add address/port config to connect to the proxy (reverse will likely not be used for
now).
Modified: trunk/java/org/jboss/web/cluster/ClusterListener.java
===================================================================
--- trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-04-28 10:36:50 UTC (rev
595)
+++ trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-04-28 13:00:31 UTC (rev
596)
@@ -68,6 +68,18 @@
// ---------------------------------------------- Properties
+ protected int proxyPort = 8000;
+ public int getProxyPort() { return proxyPort; }
+ public void setProxyPort(int proxyPort) { this.proxyPort = proxyPort; }
+
+
+ protected InetAddress proxyAddress = null;
+ public InetAddress getProxyAddress() { return proxyAddress; }
+ public void setAddress(InetAddress proxyAddress) { this.proxyAddress = proxyAddress;
}
+
+
+ // ---------------------------------------------- LifecycleListener Methods
+
/**
* Acknowledge the occurrence of the specified event.
* Note: Will never be called when the listener is associated to a Server,
@@ -101,8 +113,6 @@
}
- // ---------------------------------------------- LifecycleListener Methods
-
/**
* Primary entry point for startup and shutdown events.
*
@@ -176,11 +186,10 @@
boolean ajp = ((String)
IntrospectionUtils.getProperty(connector.getProtocolHandler(),
"name")).startsWith("ajp-");
if (reverseConnection) {
- parameters.put("ReverseConnectionPort", "" +
connector.getPort());
- } else {
- parameters.put("Host", getAddress(connector));
- parameters.put("Port", "" + connector.getPort());
+ parameters.put("Reversed", "true");
}
+ parameters.put("Host", getAddress(connector));
+ parameters.put("Port", "" + connector.getPort());
if (ajp) {
parameters.put("Type", "ajp");
} else if (ssl) {
Show replies by date