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

Wolf-Dieter Fink do-not-reply at jboss.com
Fri Sep 7 08:41:56 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/758561#758561

No because if you use container managed transaction the contract with the Spec is 
- success or BusinessException without rollback annotation -> all resorces are committed
- fail, RuntimeException or B.Exception with rollback annotation -> all resources are rolled back

So the behavior is correct.
You might use BeanManagedTx or you mark your CMT Beans accordingly.
E.g. Main SLSB without transaction call different SLSB's to charge and perform action 'that cost money'
This will work in all JEE conform servers in the same way.

Also I suppose that the AS5 and AS6 might also different in that case.

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/d4402a26/attachment.html 

More information about the jboss-user mailing list