Hi Armin, > -----Urspr�ngliche Nachricht----- > Von: Armin Waibel [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 13. Dezember 2002 14:11 > An: OJB Users List > Betreff: Re: [PB] abortTransaction() > > > Hi Sven, > > ----- Original Message ----- > From: "Efftinge, Sven" <[EMAIL PROTECTED]> > To: "'OJB Users List'" <[EMAIL PROTECTED]> > Sent: Friday, December 13, 2002 1:53 PM > Subject: [PB] abortTransaction() > > > > Hi, > > I've a problem with the transactions: > > When I run this... > > ProduktIF p = new Produkt(); > > p.setDatum(new Datum()); > > > > try { > > broker.beginTransaction(); > > broker.store(p); > > broker.abortTransaction(); > > } catch (PersistenceBrokerException ex) { > > ex.printStackTrace(); > > } > > > > ...there is always a new Produkt in the database. > > But on an abort the db should be rolled back to the state it had > before > > begin(), am I right? > > So, is this a normal behaviour for PersistenceBroker? > > Definitely not. But I think this problem is not not caused by > PB, there > are several > test cases testing rollback behaviour. > Do you change the OJB.properties settings?
Yes. Wich switches could cause this behaviour? > Do you set useAutoCommit=0 in OJB.properties file? Try '1' useAutoCommit=1 > Set eager-release=true in jdbc-connection-descriptor? Set false, or > remove entry. eager-release=false > Do you use Datasources or Connections from OJB pool? I'm using ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryCo nPooledImpl Any Ideas? Sven -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
