Q2(ISORequestListener -> space.out() -> TxManager -> GroupSelector -> TransactionParticipant -> mux.request() -> MuxPool -> (mux-1(key) ^ mux-2(key)) -> ChannelAdapter(mux-n) -> client-n)
now is it possible if ISOmsg with key(7,11) is dispatched to mux-1 and then couple of hours later ISOmsg also with the same value of key(7,11) is dispatched to mux-2… is mux-2 will raise an error or is it going to pass just like any normal ISOmsg.
how do i get response message from client-n, is it by ISOmsg response=mux.request() ?
/**
* @param m
* message to send
* @param timeout
* amount of time in millis to wait for a response
* @return response or null
*/
public ISOMsg request(ISOMsg m, long timeout) throws ISOException {
--
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/10824430-8d68-49f2-b45a-0ebd2d59a1f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefDcNGswp6jjYzFX6gv9bqqKAALtRbLXf%3DGa7pO_LPHvEA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPZRy5GX4XL7R6xT8Jk7bG7eWitkvL8S-3xKdR9UT7KE8xCbGg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0G0OFOtA1jmE0m5V-7fkjGuJLw79rBnvAhv1JNfqLGYiQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefD3zuE2OwUz5NoHswideZsY5KjOkJgVzMWLaV7PRLF-AQ%40mail.gmail.com.
package org.jpos.q2.iso;
import java.util.Calendar;
public class TestDailyTask extends DailyTaskAdaptor {
@Override
public void run() {
while (running()) {
waitUntilStartTime();
if (running()) {
System.out.println("Will get invoked when configured start time is breached");
}
}
}
}
<myDailyTask logger="Q2" class="org.jpos.q2.iso.TestDailyTask">
<property name="start" value="13:26:00" />
</myDailyTask>
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0HPp%2BEsLcC2LcExU8M9azRBc7EHY%3DRZmO3whYotYSgZ1A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefBkg7Zq%2BepBMGYutjit_qy_WnEZnq2rOBkzhLTKAyzL9w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0EnDr8dNujyLYZvOnUE%2BPxTv5%3DzMyEufk0pe1EV2tN6-A%40mail.gmail.com.
Hi Haris. I Think we could be more helpful if you tell us the reasons why you need that overcontrol on duplicate message keys.
One problem I see with your workaround:
String msgId = isomsg.getString(7) + isomsg.getString(11);
is that your reverses would have been marked as duplicated and
you need to processes them as well. Also, if you are trying to
check for duplicates at this level, and given that at midnight you
plan to forget keys, I guess you endpoints synchronize at that
point.
If this is the case you need to make sure, not only that reverses are being processed, but also you need to send the reverses to the original mux you sent the request, because the other end would have not knowledge of that request and would reject that reverse since it would not be able to handle it. This is where the round/robin with override mentioned by Andy takes place. You need to store somewhere, the mux to which message was sent so that in the process of the reverse you can override the destination mux with that.
That all said, I see all this setup overcomplicated, are you sure you need to deal with duplicates at this level, wouldn't it be responsability for the next level of authentication to have their data syncronized and check duplicates in the db or whatever storage meda they are usind?
For all of this, as I feel I'm answering blindly, I would like to have more information on the context of why you need those checks. May be you just missunderstood the real cuase you need to approach.
Best regards.
Andrés Alcarraz
-- -- 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 post to this group, send email to jpos-...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0EnDr8dNujyLYZvOnUE%2BPxTv5%3DzMyEufk0pe1EV2tN6-A%40mail.gmail.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: 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+unsubscribe@googlegroups.com. To post to this group, send email to jpos-...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0EnDr8dNujyLYZvOnUE%2BPxTv5%3DzMyEufk0pe1EV2tN6-A%40mail.gmail.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: 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+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/cb7bb064-90a8-34b3-286d-c1d71cda8508%40gmail.com.