Hello,

> -----Original Message-----
> From: Roland Carlsson [mailto:[EMAIL PROTECTED]
> 
> the broker have tre methods to handles transactions..
> 
> beginTransaction();
> broker.commitTransaction();
> broker.abortTransaction();

> > how can I use several (concurrent) transactions using the PB-API.
> > With the ODMG-API I do something like
> >
> > Transaction tx = odmg.newTransaction();
> > tx.begin();
> > ...

do you plan to have several transactions in the same thread?

In the ODMG standard, there is the concept of the "current transaction"
of a given thread, i.e., there is an association between the threads
and transactions.  For the sake of ODMG, it is advisable to have
one thread per one transaction and, conversely, one transactiob per
thread.  (I am talking about concepts, I have not experiences
about what OJB does).

For the PersistenceBroker API, there is a similar association, but I do
not know exactly what happens if several thread share one txn or vice 
versa.  So I would give the same advice.

Olli

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

Reply via email to