You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by kristian meier <kr...@jentro.com> on 2003/09/12 17:04:17 UTC

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:   Kristian.Meier@jentro.com
 Fax  +49 89 462 385 28    internet: http://www.jentro.com
----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: ConnectionFactoryManagedImpl and rollbacks

Posted by Armin Waibel <ar...@code-au-lait.de>.
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" <kr...@jentro.com>
To: "OJB Users List" <oj...@db.apache.org>
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:   Kristian.Meier@jentro.com
>  Fax  +49 89 462 385 28    internet: http://www.jentro.com
> ----------------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org