Hi Kristian, sorry for the late reply. In next future I didn't find the time to check your proposal to make rollback() a noop in ConnectionFactoryManaged Impl, but sounds correct. In a managed environment there is no need (think it's not allowed) to rollback connection. What's your experience with the changed Factory? Which API do you use (odmg, pb)?
regards, Armin ----- Original Message ----- From: "kristian meier" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 5:04 PM Subject: ConnectionFactoryManagedImpl and rollbacks > Hello, > > we are using OJB on an application server, in the moment JBoss. > everything works fine until > there comes an exception and the PersistentBroker gets closed without a > commit. > > in the close()-method the broker does a rollback on the underlying > connection-object and with > the ByPassConnection the rollback is then triggered on the underlying > connection-object. > > now my exception is caught by the EJB-container and again a rollback is > triggered on the current transaction, > which generates another exception from the EJB-container. > > we have seen this behaviour also on WebSphere and on > SunONE-Applicationserver. > > things seemed to be better after we used our own > ConnectionFactoryManagedImpl where the rollback()-method > is also no-op. > > do I miss something, why the rollback()-method is needed as is in an > applcation-server-scenario ? > > some hints are welcome to understand better what is going on here, thank you > > Kristian > > > -- > ---------------------------------------------------------------------- > Jentro > Kristian Meier, Developer > ---------------------------------------------------------------------- > Peter-Henlein-Strasse 28, 85540 Haar/Munich, Germany > Tel. +49 89 462 385 0 mailto: [EMAIL PROTECTED] > Fax +49 89 462 385 28 internet: http://www.jentro.com > ---------------------------------------------------------------------- > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
