This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic