Jahia DX > Transaction

0 (0 Good)
0 (0 Bad)

Transaction

by  pkernevez »  2011/09/12 12:40

Hi all,

How Jahia deal with Jdbc transaction ?

On one hand it seams to use Hibernate transaction, as Spring found a transaction during jdbc access, and there is an HibernateTransactionManager configured. (But I don't find how is managed the transaction demarcation (ie begin/commit/rollback)).

On the other hand, Jahia configure its connections with "defaultAutoCommit=true", and the connection used by Hibernate sessions at runtime have the property "autoCommit=true".

What it is supposed to be ?

 

Thanks for you help,

Philippe

 

  • Transaction
    2011/09/12 12:40

    pkernevez <p> Hi all,</p> <p> How Jahia deal with Jdbc transaction ?</p> <p> On one hand it seams to use Hibernate transaction, as Spring found a transaction during jdbc access, and there is an HibernateTransactionManager configured. (But I don&#39;t find how is managed the transaction demarcation (ie begin/commit/rollback)).</p> <p> On the other hand, Jahia configure its connections with &quot;defaultAutoCommit=true&quot;, and the connection used by Hibernate sessions at runtime have the property &quot;autoCommit=true&quot;.</p> <p> What it is supposed to be ?</p> <p> &nbsp;</p> <p> Thanks for you help,</p> <p> Philippe</p> <p> &nbsp;</p>

  • Number of messages  1
    Registration date Sep 12, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Transaction

    by  shuber »  2011/10/06 07:14

    Hello,

    I think you're asking about Jahia 6.1, this is the Jahia 6.5 forum :)

    Anyway, in Jahia 6.5, we use Jackrabbit's sessions, which may support transactions but are not activated by default. I think the JDBC transaction boundaries are mapped to the session.save() method.

    In Jahia 6.1 transactions are not activated at the Spring level because the default cache is not transactional, and therefore it is not possible to rollback memory writes. So as you have seen the autoCommit is activated by default.

    Regards,

      Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page