You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by herbert <io...@gmx.de> on 2009/09/24 12:09:39 UTC

Purpose of ?

Hi!

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
understand...

    /**
     * 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.