----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 13, 2002 2:14 PM Subject: RE: [PB] abortTransaction()
Just for my information, what is the goal of the attribute "eager-release" ? #### We got a problem when using OJB within JBoss, Matthew adopt the "eager-release" attribute to solve this problem. I will put some doc in the repository.dtd to avoid misunderstandings. Armin Christophe -----Original Message----- From: Armin Waibel [mailto:[EMAIL PROTECTED]] Sent: vendredi 13 d�cembre 2002 14:11 To: OJB Users List Subject: 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? Do you set useAutoCommit=0 in OJB.properties file? Try '1' Set eager-release=true in jdbc-connection-descriptor? Set false, or remove entry. Do you use Datasources or Connections from OJB pool? regards, Armin > I'm using postgresql 7.2 with jdbcdriver 7.3 and I'm using jdbcLevel 3. > I've tested the driver , and the transactions behave as I expected. > > Any Ideas? > Sven > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
