Christophe Lombart wrote:
> 
> Hi All,
> 
> I have 2 questions concerning Turbine :
> 
> 1. Peer : I'm discovering Peer classes and I'm wondering how to manage the
> db transaction. I didn't see a code that contains a
> '<BasePeer>.commitTransaction(...)'. When this method is - or not -
> necessary ?

BasePeer.java: 316 = beginTransaction

BasePeer.java: 330 = commitTransaction

BasePeer.java: 346 = rollBackTransaction

> 
> I expect the code defined for "single peer" transaction should like :
> 
>      <define criteria if needed >
>      <PeerClass.do...(...) >
> 
>      without reference to the transaction management methods ?
> 
> What about a transaction that implies 2 different peer class ?
> 

The methods mentioned above are static.  Just call them around your
other DB calls that you want to be in a transaction.

> 2. If I want to use Informix from Turbine, what I have to do ?
> Just create a new database adapter and modify the Turbine prop. file ?
> 

Sounds right.

        -Nissim


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to