[jboss-user] [Datasource Configuration] - Re: JBoss 7 Without XA Data Sources

Wolf-Dieter Fink do-not-reply at jboss.com
Fri Sep 7 02:39:28 EDT 2012

Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: JBoss 7 Without XA Data Sources"

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

I'm not sure at the moment what the spec recommend....
But I suppose it is a fuzzy transaction handling and each container might handle it different.

I would design it in a way that the credidcard part is a separate transaction (new Bean @Transaction.RequiresNew).
In this case it is clean that and when the Tx is commited. In your case the CreditCard Tx is commited at the end of your use case, so if you have an Exception after the CC is charged this Tx is also rolled back.
The only difference is the small timeslice where your code is finised and both Tx should commited.

So I would think that the behavior of AS7 is better and avoid Tx trouble and fuzzy behavior, but it might be a matter of opinion

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community

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

More information about the jboss-user mailing list