openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: JDBC SAvepointManager does not work
Date Tue, 16 Jan 2007 20:32:17 GMT
> You'll also want to set ConnectionRetainMode to transaction, which  
> will
> ensure that OpenJPA has a single connection for the duration of the
> transaction.

Performing a persistence operation and then setting a savepoint is  
enough to ensure you keep the same connection, regardless of the  
setting.  Setting the savepoint causes a flush, with initiates a DB  
transaction and ensures OpenJPA retains the connection.
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
View raw message