In order to implement a TransactionParticipant you need to add implements TransactionParticipant to your class, and implement the prepare, commit and abort method. It’s very simple. If you extend the txn module from jPOS-EE, you could extend TxnSupport instead and get advantage of some handy helper methods implemented by it.
This link can give you some ideas on how we use the TransactionManager in one of our applications. There are many other examples in the net, including some very good ones provided by Andy Orrock (http://www.andyorrock.com/) in his excellent blog.
PS.- \o/ don’t tell Andy, but I’m praising his blog so we can get him back blogging… :)
--
--
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/bc64d9ac-f86c-4e69-9b78-c9afe62ea48e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/1c5bb7a0-b834-490d-bc65-f868fcef7852%40googlegroups.com.