Are you certain that tx.begin() was called and not followed by a
tx.commit()?

-----Original Message-----
From: Joerg Lensing [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 7:54 AM
To: OJB Users List
Subject: abort transaction causes TransactionNotInProgressException


Hello,
pleas look at this code:

        Transaction tx = getActiveTransaction();
        if(tx.isOpen()) {
            tx.abort();
        }


this causes :

[org.apache.ojb.odmg.TransactionImpl] INFO: Abort transaction was called 
on tx [EMAIL PROTECTED], associated PB was 
[EMAIL PROTECTED]
2003-06-23 13:47:58,031 WARN  - Unhandled Exception thrown: class 
org.odmg.TransactionNotInProgressException


what am I doing wrong?

joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





DISCLAIMER: The information contained in this e-mail is, unless otherwise
indicated, confidential and is intended solely for the use of the named
addressee. Access, copying or re-use of the e-mail or any information
contained therein by any other person is not authorized. If you are not the
intended recipient please notify us immediately by returning the e-mail to
the originator.

Reply via email to