On Wed, Jul 9, 2008 at 10:16 PM, Pinaki Poddar <[EMAIL PROTECTED]> wrote:
>
> Hi,
>> connection being thrown away after I finish a transaction and close the
>> EntityManager.
>
> ConnectionRetainMode 'always' retains the connection *until* the
> EntityManager closes. Once you close the EntityManager, the connection will
> return to the pool for obvious reasons.

Ok.  It's not what I was expecting since by default Hibernate keeps a
sleeping connection to the database after EntityManger#close and
EclipseLink keeps seven(!) connections.

So if I want this functionality with OpenJPA, I must setup pooling?

Reply via email to