I used spring jpa(hibernate) atomikos jta transaction.Connection closes in 1 minute after first statement execute on the database side(automatically pgbouncer).But Spring transaction continues. First query execute then call ws or another work do (1 minutes passes).Then second query execute then throw exception Transaction interleaving not supported.
İf I use non Xa datasource then exception is change statestaleobjectException ,row was updated another transaction or updated(0)..