I suggest you add a Logger to your channel in order to see why you’re disconnecting, perhaps it’s the other end that drops the connection.
You add a logger with code like this:
import org.jpos.util.*;
Logger logger = new Logger();
logger.addListener (new SimpleLogListener(System.out));
channel.setLogger(logger, "mychannel");
Of course, you could use Q2 and have the logger, the channel, and probably the multiplexer configured for you using simple XML files in your deploy directory.
--
--
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: sa...@jpos.org
Join us in IRC at http://webchat.freenode.net/?channels=jpos
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
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 jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/92ef1b83-0b4f-480c-887f-5f624a9587b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peer disconnect is telling you the remote disconnected.
You should talk to them.
Take a look at the Basechannel.Java code and the location where the sags event gets logged.
They may tell you that they disconnect if a line is inactive for 30 seconds and that you need to send keep alive messages, which could be network management messages.
-chhil
Dear Alejandro,
Thanks for reply.
Please note we already configured logger, the channel in our client application.
Tried couple of transactions with Host however its getting disconnected if Host responds more than 30 seconds.
Please find the logs.
<log realm="Test-Channel/XXX.XX.XX.XX:XXXX" at="Fri Dec 11 13:44:29 IST 2015.424" lifespan="34ms">
<connect>
121.244.27.90:14455
</connect>
</log>
<log realm="Fpay-Channel/121.244.27.90:14455" at="Fri Dec 11 13:44:29 IST 2015.425">
<send>
<isomsg direction="outgoing">
<!-- com.ds.cpgw.hosts.fpay.FpayPackager -->
Durga Prasad
On Wednesday, December 9, 2015 at 12:52:52 AM UTC+5:30, Alejandro Revilla wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/65dbe8eb-dc5f-4a45-9423-7928997723eb%40googlegroups.com.
Thank you chhill..
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/f3Y_evcfFC8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefD4xV%2B%3D-E8ftvCvOqOC8bdz7cie0kYZj-uSue6gyKXYwg%40mail.gmail.com.