[jboss-user] [Datasource Configuration] - Re: What means datasource attribute "jta" in Jboss 7.1.Final config?

PHANI BHUSHAN REDDY VEMI REDDY do-not-reply at jboss.com
Tue Apr 17 15:22:39 EDT 2012


PHANI BHUSHAN REDDY VEMI REDDY [https://community.jboss.org/people/vphanibhushanreddy] created the discussion

"Re: What means datasource attribute "jta" in Jboss 7.1.Final config?"

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

--------------------------------------------------------------
JPA implementations have the choice of managing transactions themselves (RESOURCE_LOCAL), or having them managed by the application server's JTA implementation. In most cases, RESOURCE_LOCAL is fine. This would use basic JDBC-level transactions. The downside is that the transaction is local to the JPA persistence unit, so if you want a transaction that spans multiple persistence units (or other databases), then RESOURCE_LOCAL may not be good enough.

JTA is also used for managing transactions across systems like JMS and JCA, but that's fairly exotic usage for most of us. To use JTA, you need support for it in your application server, and also support from the JDBC driver.

In your current configuration, its JTA type datasource.
--------------------------------------------------------------

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

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120417/ccf8b5ae/attachment-0001.html 


More information about the jboss-user mailing list