Announcement Announcement Module
No announcement yet.
Unique transaction for get & post Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unique transaction for get & post


    I am using Spring 3.0.4 MVC and the transactional DAO with the JDO of DataNucleus. My very simple application is just a single Form where fields values are filled from DAOs. When selects, radiobuttons and checkboxes are selected, the form is send back to stores the resulting DAO.

    I got an org.springframework.dao.DataIntegrityViolationExce ption:because the DAO values used to fill the form are not get in the same transaction as the one used to make persistent the resulting DAO .

    I have followed the Spring documentaiton about TransactionManager proxys and transactions annotations driven and so on, but I always got this exception.

    So how should be configured the beans and application for running the POST/GET requets in a single transaction?

    You will find all sources in the attached documents as well as the full trace of the execution.

    Thank in advance.