You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jeremy Wilkerson <jj...@ubtanet.com> on 2003/07/24 14:57:20 UTC
checkpoint problem
I'm using the ODMG API of OJB 1.0.rc3 with MySQL. When I call
checkpoint() on a Transaction, the underlying database transaction isn't
being committed. I added the following to TransactionImpl.checkpoint(),
right after doCommitOnObjects();
if (getBroker().isInTransaction())
getBroker().commitTransaction();
It seems to work. This likely isn't the best solution, as I'm not very
familiar with the OJB code. If this problem has already been fixed
somewhere else, someone please tell me where to look in the CVS tree.
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org
Re: checkpoint problem
Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Jeremy,
I add your patch to CVS. Thanks!
regards,
Armin
----- Original Message -----
From: "Jeremy Wilkerson" <jj...@ubtanet.com>
To: <oj...@db.apache.org>
Sent: Thursday, July 24, 2003 2:57 PM
Subject: checkpoint problem
> I'm using the ODMG API of OJB 1.0.rc3 with MySQL. When I call
> checkpoint() on a Transaction, the underlying database transaction
isn't
> being committed. I added the following to
TransactionImpl.checkpoint(),
> right after doCommitOnObjects();
>
> if (getBroker().isInTransaction())
> getBroker().commitTransaction();
>
> It seems to work. This likely isn't the best solution, as I'm not
very
> familiar with the OJB code. If this problem has already been fixed
> somewhere else, someone please tell me where to look in the CVS tree.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org