GeeCON Prague 2014*
The moose likes Spring and the fly likes  Spring with Atomikos Error - XAER_DUPID: The XID identifies an existing transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark " Spring with Atomikos Error - XAER_DUPID: The XID identifies an existing transaction" Watch " Spring with Atomikos Error - XAER_DUPID: The XID identifies an existing transaction" New topic
Author

Spring with Atomikos Error - XAER_DUPID: The XID identifies an existing transaction

Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 486
    
    2

Hello Folks

I configured an existing solution JSF 2, JPA with SPRING with Atomikos JTA .... but this error is occurring:



When I run a bean method with only 1 insert, the error does not appear .. when I run a bean method occurs with 2 or more insert, the error happens.
I have several bean, calling other beans.insert () all with @ Transactional ... It seems that Spring is not able to properly propagate internal transactions other beans ....
This solution was already running transactions using JpaTransactionManager ... but when I configured the JtaTransactionManager stopped working ...
My spring xml:



Could someone help me?
Best Regards.


Fernando Franzini - Java Blog
 
GeeCON Prague 2014
 
subject: Spring with Atomikos Error - XAER_DUPID: The XID identifies an existing transaction