[jpos-users] Jpos server disconnect intimation to JPOS client

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

[jpos-users] Jpos server disconnect intimation to JPOS client

Amit Vadje
Hi,

We have one async jpos client and jpos server program. Jpos client sends the request to server using QMUX in async manner. How can we identify whether request is sent successfully to server or not in JPOS client if JPOS server is not started/disconnected?
As we received response message as NULL in JPOS client for JPOS server timeout or disconnected/not started case.


Thanks,
Amit

--
--
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/87353b89-99ea-4527-baa5-72f2cd4a979c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] Jpos server disconnect intimation to JPOS client

Andrés Alcarraz

You can call mux.isConnected() before trying. That works if you have set de ready property as in the next example borrowed from the excellent must read jpos programmer's guide:

<mux class="org.jpos.q2.iso.QMUX" logger="Q2" name="mymux">
 <in>your-channel-receive</in>                               (1)
 <out>your-channel-send</out>                                (2)
 <ready>your-channel.ready</ready>                           (3)
</mux>

(3) In order to provide a usable MUX.isConnected() method, the MUX needs to have a way to know if the underlying channel, loosely connected through the in/out queues is actually connected. The channel adaptor sets an entry in the space named after the channel’s name with the extension .ready as true when connected, so the optional ready element has to match that name. If a <ready> element isn’t present, MUX.isConnected() will always return true.

Hope this helps

Andrés Alcarraz

El 24/05/17 a las 09:51, Amit Vadje escribió:
Hi,

We have one async jpos client and jpos server program. Jpos client sends the request to server using QMUX in async manner. How can we identify whether request is sent successfully to server or not in JPOS client if JPOS server is not started/disconnected?
As we received response message as NULL in JPOS client for JPOS server timeout or disconnected/not started case.


Thanks,
Amit
--
--
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/87353b89-99ea-4527-baa5-72f2cd4a979c%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/dafdbd3f-53b1-bb84-ea9f-2ea90b994160%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] Jpos server disconnect intimation to JPOS client

Andrés Alcarraz
In reply to this post by Amit Vadje

Hi Amit:

You can call mux.isConnected() before trying. That works if you have set de ready property as in the next example borrowed from the excellent must read jpos programmer's guide:

<mux class="org.jpos.q2.iso.QMUX" logger="Q2" name="mymux">
 <in>your-channel-receive</in>                               (1)
 <out>your-channel-send</out>                                (2)
 <ready>your-channel.ready</ready>                           (3)
</mux>

(3) In order to provide a usable MUX.isConnected() method, the MUX needs to have a way to know if the underlying channel, loosely connected through the in/out queues is actually connected. The channel adaptor sets an entry in the space named after the channel’s name with the extension .ready as true when connected, so the optional ready element has to match that name. If a <ready> element isn’t present, MUX.isConnected() will always return true.

Hope this helps

Andrés Alcarraz

El 24/05/17 a las 09:51, Amit Vadje escribió:
Hi,

We have one async jpos client and jpos server program. Jpos client sends the request to server using QMUX in async manner. How can we identify whether request is sent successfully to server or not in JPOS client if JPOS server is not started/disconnected?
As we received response message as NULL in JPOS client for JPOS server timeout or disconnected/not started case.


Thanks,
Amit
--
--
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/87353b89-99ea-4527-baa5-72f2cd4a979c%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/0bfe73b8-dd33-a1e1-2cdf-84f1c5a4e3f6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] Jpos server disconnect intimation to JPOS client

Amit Vadje
Hi Andres,

Thanks a lot. Using this setting we are able to verify the channel is connected or not.


Thanks,
Amit

On Wednesday, 24 May 2017 18:31:41 UTC+5:30, Andrés Alcarraz wrote:

Hi Amit:

You can call mux.isConnected() before trying. That works if you have set de ready property as in the next example borrowed from the excellent must read <a href="http://jpos.org/doc/proguide-draft.pdf" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjpos.org%2Fdoc%2Fproguide-draft.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFlxf0DPT8-oVSn7xL9ta8hBZpjSg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjpos.org%2Fdoc%2Fproguide-draft.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFlxf0DPT8-oVSn7xL9ta8hBZpjSg&#39;;return true;">jpos programmer's guide:

<mux class="org.jpos.q2.iso.QMUX" logger="Q2" name="mymux">
 <in>your-channel-receive</in>                               (1)
 <out>your-channel-send</out>                                (2)
 <ready>your-channel.ready</ready>                           (3)
</mux>

(3) In order to provide a usable MUX.isConnected() method, the MUX needs to have a way to know if the underlying channel, loosely connected through the in/out queues is actually connected. The channel adaptor sets an entry in the space named after the channel’s name with the extension .ready as true when connected, so the optional ready element has to match that name. If a <ready> element isn’t present, MUX.isConnected() will always return true.

Hope this helps

Andrés Alcarraz

El 24/05/17 a las 09:51, Amit Vadje escribió:
Hi,

We have one async jpos client and jpos server program. Jpos client sends the request to server using QMUX in async manner. How can we identify whether request is sent successfully to server or not in JPOS client if JPOS server is not started/disconnected?
As we received response message as NULL in JPOS client for JPOS server timeout or disconnected/not started case.


Thanks,
Amit
--
--
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="DXexN_nqBgAJ" 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="DXexN_nqBgAJ" 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="DXexN_nqBgAJ" 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/87353b89-99ea-4527-baa5-72f2cd4a979c%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/87353b89-99ea-4527-baa5-72f2cd4a979c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/87353b89-99ea-4527-baa5-72f2cd4a979c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/87353b89-99ea-4527-baa5-72f2cd4a979c%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/05a09dd5-714c-448e-b6a1-11f90bec0bf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.