Off Topic Re: [jpos-users] QMUX client reconnecting after timeout

10 views
Skip to first unread message

Mark Salter

unread,
Jun 25, 2025, 3:37:05 PMJun 25
to jpos-...@googlegroups.com

Déjà vu !

I am sure we have have travelled those loop before.

Sorry for the noise from me

-- 
Mark



-------- Original Message --------
On 25/06/2025 10:43, csr wrote:
Hi,
Our application acts as a gateway. It receives requests from our clients and forwards them to the server. To connect with the server, we are using Q2 and QMUX in our application.

We are able to establish a connection with the server when Q2 environment started, but the connection drops after a timeout period and the system then attempts to reconnect.

Our server expects the following behaviour:
1. Once the connection is established, the client should hold the connection.
2. The client should send a request to the server only when a request is received at the gateway.
3. The client should attempt to reconnect only if there is no response from the server or the connection is dropped.

Kindly let us know if there is any issue with our current approach and how we can achieve the desired behaviour.
Also attached our JPos configuration

<?xml version="1.0" encoding="UTF-8"?>
<mux class="org.jpos.q2.iso.QMUX" logger="Q2" name="test-mux">
    <in>client-receive</in>
    <out>client-send</out>
    <ready>test-channel.ready</ready>
    <unhandled>myunhandledqueue</unhandled>
    <key>2 7</key>
</mux>

<?xml version="1.0" encoding="UTF-8"?>
<channel-adaptor name='test-channel'
                 class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">
    <channel class="org.jpos.iso.channel.VAPChannel" logger="Q2" realm="test-channel"
                 packager="org.jpos.iso.packager.GenericPackager">      
        <property name="packager-config" value="iso/base1.xml" />
        <property name="host" value="10.1.99.79" />
        <property name="port" value="9999" />
        <property name="connection-timeout" value="5000" />
        <property name="timeout" value="5000" />
        <property name="keep-alive" value="true" />  
 
    </channel>
<request-listener class="TestRequestListener"/>
<!--    <ignore-iso-exceptions>yes</ignore-iso-exceptions>-->
    <in>client-send</in>
    <out>client-receive</out>
    <reconnect-delay>30000</reconnect-delay>
</channel-adaptor>

 // Start Q2 environment
            Q2 q2 = new Q2("c:/projects/jpos-qmux/deploy/");
             q2.start();

Regards
Reddy

--
--
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
---
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 visit https://groups.google.com/d/msgid/jpos-users/0b234979-3a01-4dc4-bf89-0d4bf3a339f1n%40googlegroups.com.
signature.asc
Reply all
Reply to author
Forward
0 new messages