-
1. Re: How do I get HTTP invoker to return an proxy attached to the same port as requested
mp911de Aug 5, 2011 4:16 PM (in response to fharms)Hi,
add following properties to your connectors:
proxyName
If this Connector is being used in a proxy configuration, configure this attribute to specify the server name to be returned for calls to
request.getServerName()
. See Proxy Supportfor more information.proxyPort
If this Connector is being used in a proxy configuration, configure this attribute to specify the server port to be returned for calls to
request.getServerPort()
. See Proxy Supportfor more information.Best regards,
Mark
-
2. Re: How do I get HTTP invoker to return an proxy attached to the same port as requested
fharms Aug 6, 2011 1:48 PM (in response to mp911de)Hi Mark
Thanks for the suggestion! Unfortunately I already tried it and it did help in my case.
Then I decide to take a look on the code and from what I can see when the HttpInvokerProxy is created, it always use either the binding address or the hostname from InetAddress.getLocalHost().
But I did find a work around by overriding InvokerURL in the jboss-service in httpha-invoker.sar and the it's the clients job to obtain the HTTP URL to the InvokerServlet. Just before I create a new InitialContext I set the system property with the key from the InvokerURL and then a URL
br
Flemming