Hi,
I have tested scenario[1] with two ESB servers with port offsets. Both
servers (accepts HTTPS requests via port values 9443 and 9446) listen to
port 6071 (refer log message below) when installing features from feature
manager.
INFO - DefaultConnectionListener Listening on port 6071
Current implementation does not add port offset to port values in
axis2_client.xml. Port value is defined in SimpleHTTPServer.java[2] (line
109). Please find the attached diff for the fix[1].
[1] https://wso2.org/jira/browse/CARBON-13603
[2]
https://github.com/wso2-dev/wso2-axis2/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
Thanks,
Nipuni
On Mon, Sep 1, 2014 at 10:50 AM, Nipuni Perera <[email protected]> wrote:
> Hi,
>
> I could reproduce bind exceptions in jira issue [1] (for port 8200) with
> dual channel invocation (tested with ESB sample 13) with two ESB servers
> started with port offset. Port 8200 is used as the Reply-To address in both
> servers and does not update with the port offset. Value for port
> "localMemberPort" (defined in axis2.xml and used in cluster setup) is set
> by user [2]. Does the port offset value should update ports in
> axis2_client.xml (eg: transportReceiver port value) and axis2.xml (eg:
> "localMemberPort")?
>
> [1] https://wso2.org/jira/browse/CARBON-13603
> [2] https://wso2.org/jira/browse/CARBON-14406
>
> Thanks,
> Nipuni
>
>
> On Fri, Aug 22, 2014 at 11:57 AM, Danushka Fernando <[email protected]>
> wrote:
>
>> Is it a real requirement to set carbon port offset to axis2 ports as
>> well? Then it will no longer be a carbon offset AFAIU.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Fri, Aug 22, 2014 at 9:04 AM, Nipuni Perera <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am working on issues[1] and [2]. Does the port offset defined in
>>> carbon.xml, should affect to ports in axis2_client.xml and localMemberPort?.
>>> Port values defined in carbon.xml inside <Ports> tag (eg:
>>> LDAPServerPort) get updated with the offset value.
>>>
>>> CarbonUtils.getPortFromServerConfig("portName")
>>>
>>> Port values inside axis2_client.xml (eg: transportReceiver port value)
>>> and port "localMemberPort" (defined in axis2.xml and used in cluster setup)
>>> does not update with the offset value in carbon.xml.
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-13603
>>> [2] https://wso2.org/jira/browse/CARBON-14406
>>>
>>> Thanks,
>>> Nipuni
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: [email protected]
>>> Git hub profile: https://github.com/nipuni
>>> Mobile: +94 (71) 5626680
>>> <http://wso2.com>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: [email protected]
> Git hub profile: https://github.com/nipuni
> Mobile: +94 (71) 5626680
> <http://wso2.com>
>
>
--
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: [email protected]
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680
<http://wso2.com>
diff --git
a/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
b/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
index 72b3cb3..a9caa67 100644
---
a/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
+++
b/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
@@ -105,8 +105,10 @@ public class SimpleHTTPServer implements TransportListener
{
this.trpInDesc = transprtIn;
Parameter param = transprtIn.getParameter(PARAM_PORT);
+ String portOffset = System.getProperty("portOffset");
if (param != null) {
- this.port = Integer.parseInt((String) param.getValue());
+ this.port = (portOffset == null) ? Integer.parseInt((String)
param.getValue()) :
+ Integer.parseInt((String) param.getValue()) +
Integer.parseInt(portOffset);
}
if (httpFactory == null) {
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev