jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From herbert <i...@gmx.de>
Subject Purpose of <bindSessionToTransaction>?
Date Thu, 24 Sep 2009 10:09:39 GMT


A <tx-connection-factory> has a config-property bindSessionToTransaction.

Can someone explain or has some links, what this parameter provokes?

I've found this javadoc-comment in
org.apache.jackrabbit.jca.JCAManagedConnectionFactory, that I do not really

     * Flag indicating whether the session should be bound to the
     * transaction lyfecyle.
     * In other words, if this flag is true the handle
     * will be closed when the transaction ends.
    private Boolean bindSessionToTransaction = Boolean.TRUE;

Does this mean the following assumptions?:

If bindSessionToTransaction is set to true, the session will be closed
automatically, when the transaction ends and when the session wasn't closed
before. When the session was closed before, there is no difference to the
behaviour of bindSessionToTransaction=false.

If bindSessionToTransaction is set to false, the session will *not* be
closed automatically, when the transaction ends leaving it to the
responsibility of the developer to close it sometime?

Is this correct and are these the whole implications of this parameter?

Regards, Herbert
View this message in context: http://www.nabble.com/Purpose-of-%3CbindSessionToTransaction%3E--tp25551407p25551407.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message