[jpos-users] local-port in channel adaptor is not using single port

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jpos-users] local-port in channel adaptor is not using single port

Alex
Hi All,

I am try to connect to the authorization system using a singe port, i have used local-port in the channel adaptor configuration, however still it uses a random port to connect.

Below is the adaptor configuration

<?xml version="1.0" encoding="UTF-8"?>
<channel-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2" name="RouterHost2Channel">
<channel class="org.jpos.iso.channel.NACChannel" logger="Q2" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg\packager\TEST.xml"/>
<property name="local-port" value="8003"/>
<property name="host" value="xxx.xxx.xx.xxx"/>
<property name="port" value="8008"/>
<property name="timeout" value="60000" />
<property name="keep-alive" value="true" />
</channel>
<in>router-host2-send</in>
<out>router-host2-receive</out>
<reconnect-delay>5000</reconnect-delay>
</channel-adaptor>

i have also tried along with local-iface as "127.0.01".

Regards,
Alex

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] local-port in channel adaptor is not using single port

Alejandro Revilla
Just found the problem, and there's a nasty bug.

If there's a connect timeout (and we do have a default one), then this localPort property is not honored.

I'll fix that shortly, but as a temporary fix, please add the following:

   <property name="connect-timeout" value="0" />

in addition to your local-port configuration (no need to set local-iface unless you want to).

Will confirm once this is fixed.



On Thu, Jul 13, 2017 at 7:00 AM, Alex <[hidden email]> wrote:
Hi All,

I am try to connect to the authorization system using a singe port, i have used local-port in the channel adaptor configuration, however still it uses a random port to connect.

Below is the adaptor configuration

<?xml version="1.0" encoding="UTF-8"?>
<channel-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2" name="RouterHost2Channel">
<channel class="org.jpos.iso.channel.NACChannel" logger="Q2" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg\packager\TEST.xml"/>
<property name="local-port" value="8003"/>
<property name="host" value="xxx.xxx.xx.xxx"/>
<property name="port" value="8008"/>
<property name="timeout" value="60000" />
<property name="keep-alive" value="true" />
</channel>
<in>router-host2-send</in>
<out>router-host2-receive</out>
<reconnect-delay>5000</reconnect-delay>
</channel-adaptor>

i have also tried along with local-iface as "127.0.01".

Regards,
Alex

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3D%3DG0g2Ck%3DyVjk_UWxHEksxqNtL5C9B2xw9VDjXmd_Dt6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] local-port in channel adaptor is not using single port

Alejandro Revilla
FYI, this bug is fixed. A nightly build has been forced.





On Thu, Jul 13, 2017 at 6:09 PM, Alejandro Revilla <[hidden email]> wrote:
Just found the problem, and there's a nasty bug.

If there's a connect timeout (and we do have a default one), then this localPort property is not honored.

I'll fix that shortly, but as a temporary fix, please add the following:

   <property name="connect-timeout" value="0" />

in addition to your local-port configuration (no need to set local-iface unless you want to).

Will confirm once this is fixed.



On Thu, Jul 13, 2017 at 7:00 AM, Alex <[hidden email]> wrote:
Hi All,

I am try to connect to the authorization system using a singe port, i have used local-port in the channel adaptor configuration, however still it uses a random port to connect.

Below is the adaptor configuration

<?xml version="1.0" encoding="UTF-8"?>
<channel-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2" name="RouterHost2Channel">
<channel class="org.jpos.iso.channel.NACChannel" logger="Q2" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg\packager\TEST.xml"/>
<property name="local-port" value="8003"/>
<property name="host" value="xxx.xxx.xx.xxx"/>
<property name="port" value="8008"/>
<property name="timeout" value="60000" />
<property name="keep-alive" value="true" />
</channel>
<in>router-host2-send</in>
<out>router-host2-receive</out>
<reconnect-delay>5000</reconnect-delay>
</channel-adaptor>

i have also tried along with local-iface as "127.0.01".

Regards,
Alex

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DmsNqR3cSDzjiOXCByVWuO_UuJUyax5EUP9Yd9nzWaYRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] local-port in channel adaptor is not using single port

Alex
Thanks Alejandro...Used your workaround got it working. Will check with the new build also.



On Friday, July 14, 2017 at 5:26:24 AM UTC+5:30, Alejandro Revilla wrote:
FYI, this bug is fixed. A nightly build has been forced.

Here is the fix: <a href="https://github.com/jpos/jPOS/commit/a9c66f1d122c5ec058b97bff739abbaef987b63c" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Fcommit%2Fa9c66f1d122c5ec058b97bff739abbaef987b63c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEblGJ0yrJcH8viZtFTY_WW5kVDVw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Fcommit%2Fa9c66f1d122c5ec058b97bff739abbaef987b63c\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEblGJ0yrJcH8viZtFTY_WW5kVDVw&#39;;return true;">https://github.com/jpos/jPOS/commit/a9c66f1d122c5ec058b97bff739abbaef987b63c



--
<a style="font-family:garamond,serif" href="http://twitter.com/apr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;">@apr

On Thu, Jul 13, 2017 at 6:09 PM, Alejandro Revilla <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6VpoYrF4BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">a...@...> wrote:
Just found the problem, and there's a nasty bug.

If there's a connect timeout (and we do have a default one), then this localPort property is not honored.

I'll fix that shortly, but as a temporary fix, please add the following:

   <property name="connect-timeout" value="0" />

in addition to your local-port configuration (no need to set local-iface unless you want to).

Will confirm once this is fixed.


--
<a style="font-family:garamond,serif" href="http://twitter.com/apr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;">@apr

On Thu, Jul 13, 2017 at 7:00 AM, Alex <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6VpoYrF4BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sures...@...> wrote:
Hi All,

I am try to connect to the authorization system using a singe port, i have used local-port in the channel adaptor configuration, however still it uses a random port to connect.

Below is the adaptor configuration

<?xml version="1.0" encoding="UTF-8"?>
<channel-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2" name="RouterHost2Channel">
<channel class="<a href="http://org.jpos.iso.channel.NA" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.NA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLX--5ZHbSbLCqNEY9nd8Gktd5sQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.NA\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLX--5ZHbSbLCqNEY9nd8Gktd5sQ&#39;;return true;">org.jpos.iso.channel.NACChannel" logger="Q2" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg\packager\TEST.xml"/>
<property name="local-port" value="8003"/>
<property name="host" value="xxx.xxx.xx.xxx"/>
<property name="port" value="8008"/>
<property name="timeout" value="60000" />
<property name="keep-alive" value="true" />
</channel>
<in>router-host2-send</in>
<out>router-host2-receive</out>
<reconnect-delay>5000</reconnect-delay>
</channel-adaptor>

i have also tried along with local-iface as "127.0.01".

Regards,
Alex

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6VpoYrF4BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6VpoYrF4BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6VpoYrF4BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/804c3c8c-422c-4816-9bbd-77f5b4ee67b5%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/8fc4b1be-5a48-4114-86bc-21b4b84fa844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.