2 Replies Latest reply on May 2, 2012 8:12 AM by davsclaus

    Aries JTA Transactions Not Committing...

    jwcarman

      I have a very simple route:

       

      from(inputUri)

        .transacted()

        .to("bean:myRepo?method=getAndDeleteAll")

        .split().body().shareUnitOfWork()

        .convertBodyTo(SomeBean.class)

        .marshal().jaxb(packageOf(SomeBean.class))

        .to(outputUri);

       

      The getAndDeleteAll() method is marked as @Transactional.  I can see all of the logging for the transaction manager.  It looks like it's trying to do the right thing.  However, the messages are getting into my JMS queue (from the configured "outputUri"), but the transaction into the database (to delete the entities) isn't doing anything (it works in a unit test).  In my Spring application context which contains my Camel context, I'm getting access to a PlatformTransactionManager using an osgi:reference:

       

      <osgi:reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager"/>

       

      Any thoughts?