db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitzethum, Daniel" <Daniel.Vitzet...@gigatronik.com>
Subject Torque, Transactions and Container (Bea)
Date Thu, 24 Nov 2005 12:00:20 GMT
Hello all,

a question concerning Torque and Transaction handling. We are
using Torque 3.1 with Bea 8.1. Tx should be handled by the
Container. What is the best strategy to disable Torque's own

I've been playing around with Transaction.beginOptional(),
but don't like to do these calls in every finder or save method.
Is there a property to set? Or a hook to get into?

This is how I would solve it by now:

  Connection conn = Transaction.beginOptional(Torque.getDefaultDB(),
  MyPeer.doInsert/Update/Delete(Criteria, conn);

Thx for your help,


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

View raw message