Announcement Announcement Module
No announcement yet.
Transactional issues Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transactional issues


    I am using Spring Batch with Hibernate/JPA and SQL Server 2005 and all is working happily. In the course of troubleshooting a deadlock issue in my code, I discovered that I wasn't using the Spring Batch namespace and hadn't implemented an AOP strategy (as indicated at

    After experimenting with both techniques, I am facing an issue where the job instance isn't being created. I've verified via a previously working @BeforeJob annotation, and can also confirm that no data is being written to the Spring Batch tables. I've also run a trace on SQL Server, and it appears that no INSERT/UPDATE commands are being sent. Certainly no deadlocks are being presented.

    Would it be useful if I posted the relevant JPA/Spring Batch XML, or does anyone have an idea where to start? Everything looks correct...!

    Many thanks,

  • #2
    PS. Despite the manual saying that it's essential to configure the transactional behaviour if not using the Spring Batch namespace (which I'm not doubting), the Spring Batch examples don't appear to do either...


    • #3
      Ah. Just realised that I'm using the JobRepositoryFactoryBean, which already handles the transactional stuff. Feel free to ignore me ;-)