--
--
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/49438f09-6112-404e-b45e-f0a969704062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There’s currently no way to do that, when the transaction is automatically resumed due to a timeout, the system assumes that the previous participant has aborted. One way to override that behaviour is by making sure you never timeout, using your own timer task or scheduled executor to resume the context.
The existing code does something like this:
public static class PausedMonitor extends TimerTask {
Pausable context;
public PausedMonitor (Pausable context) {
super();
this.context = context;
}
@Override
public void run() {
cancel();
context.getPausedTransaction().forceAbort();
context.resume();
}
}
you can see a call to context.getPausedTransaction().forceAbort();
before calling resume.
If it helps, we can make that behaviour configurable (i.e something like abort-on-resume=false
) with a default to true.
Would that work for you?
--
--
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/e121ae73-3f99-41db-bc15-f849ca7c61f7%40googlegroups.com.
--
--
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/2c936229-9df8-4564-9de8-35d62b57bcd8%40googlegroups.com.