From: "Skip Walker" <[EMAIL PROTECTED]>
>
> I think the real root of my question was regarding how people are handling
> the need for transactions outside of the EJB environment.  Are all
solutions
> homegrown?

Turbine includes facilities for handling transactions.

            DBConnection dbCon = BasePeer.beginTransaction("default");
            try {
                objectA.save(dbCon);
                objectB.save(dbCon);
                BasePeer.commitTransaction(dbCon);
            }
            catch (SQLException ex) {
                BasePeer.rollBackTransaction(dbCon);
            }

An actual transaction will only be used if the underlying database
supports them.

HTH,

Scott


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

Reply via email to