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.
<?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".