Problem is Request listener is processing messages in sequential manner hence Acquire end is timeout when there is bulk of Incoming ISO messages, Please let me know my configuration issue here ,
mux
====
<?xml version="1.0" encoding="UTF-8"?>
-<mux name="bank-mux" logger="Q2" class="org.jpos.q2.iso.QMUX">
<in>bank-receive</in>
<out>bank-send</out>
<unhandled>bank-unhandled</unhandled>
<request-listener logger="Q2" class="IsoListener"> </request-listener>
</mux>
ChannelAdapter
=============
<channel-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2" name="bank-channel">
<channel class="MyChannel" logger="Q2"
packager="org.jpos.iso.packager.GenericPackager">
<!--<property name="packager-config" value="D:/EFT/INWARD/PACKAGER/iso87ascii.xml" /> -->
<property name="packager-config" value="/EFT/INWARD/PACKAGER/iso87ascii.xml" />
<property name="host" value="123.231.38.153"/>
<property name="port" value="6342" />
</channel>
<in>bank-send</in>
<out>bank-receive</out>
<property name="timeout" value="300000" />
<property name="keep-alive" value="true" />
<reconnect-delay>10
MyChannel.java
=========
public class
MyChannel extends RawChannel {
public
MyChannel () throws ISOException {
this("xxx.xxx.xx.xxx", xxxx, new GenericPackager("/xx/xx/PACKAGER/iso87ascii.xml"), "IS0198730 ".getBytes());
}
public
MyChannel (String host, int port, ISOPackager p, byte[] header) {
super(host, port, p, header);
}
public
MyChannel (ISOPackager p, byte[] header) throws IOException {
super(p, header);
}
public
MyChannel (ISOPackager p, byte[] header, ServerSocket serverSocket) throws IOException {
super(p, header, serverSocket);
}
}
IsoListner.JAVA
=============
public class IsoListener implements ISORequestListener {
ISOMsg resp210 = new ISOMsg();
@Override
public boolean process(ISOSource source, ISOMsg m) {
boolean result = false;
try {
//DB Operations
//COnstrut isoMsg Response
source.send(
isoMsg );
return true
}catch(Exception e){
}
}
IN this implementation when we receiving the bulk of messages Acquire end is time out dut to exceeding time for response.