Sample code for Spring based transaction management. Both local and XA.