[jboss-dev-forums] [JBoss AS 7 Development] - Re: Two-phase commit using an XA-datasource

Michael Musgrove do-not-reply at jboss.com
Thu Dec 6 17:35:17 EST 2012


Michael Musgrove [https://community.jboss.org/people/mmusgrov] created the discussion

"Re: Two-phase commit using an XA-datasource"

To view the discussion, visit: https://community.jboss.org/message/780523#780523

--------------------------------------------------------------
The AS7 quickstarts ( https://github.com/jboss-jdf/jboss-as-quickstart https://github.com/jboss-jdf/jboss-as-quickstart) have some transactions examples including how to update two datasources within a single transaction (look for CMT, BMT, jts and the crash-rec examples).

It is possible to enlist a single non-XA aware datasource (search for LRCO for details) but we don't support it since it is not a recommended configuration.

The transaction manager is initialised by the AS so you don't create it yourself. Normally you would use the EJB mechanisms for controlling transactions - the quickstarts cover both bean managed and container managed transactions. If you really want to get hold of the transaction manager you can look it up via JNDI (but the name is not standardised by the specifications, I believe AS7 uses java:jboss/TransactionManager).
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/780523#780523]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121206/f6ccd1eb/attachment.html 


More information about the jboss-dev-forums mailing list