Hi Lasse,

Poet has excellent material on ODMG in their community area:
http://community.fastobjects.com/community_documentation_oss61.htm

You have to sign in, but it's really worth it.

cheers,
Thomas

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 2:43 PM
> To: OJB Users List
> Subject: Antwort: RE: Transactions with PB-API
> 
> 
> 
> Hello Oliver,
> 
> no, I wanted to use several threads, each having an own transaction.
> I just missed the fact that I can get several brokers from the
> factory. It works fine now.
> 
> Btw, are there any resources about the ODMG standard available online
> (beside the book referral on the odmg-website...) ?
> 
> Lasse
> 
> 
> 
> 
> 
> |---------+--------------------------->
> |         |           [EMAIL PROTECTED]|
> |         |           de              |
> |         |                           |
> |         |           11.09.03 09:26  |
> |         |           Bitte antworten |
> |         |           an "OJB Users   |
> |         |           List"           |
> |         |                           |
> |---------+--------------------------->
>   
> >-------------------------------------------------------------
> ------------------------------------------------------------------|
>   |                                                           
>                                                                     |
>   |        An:      [EMAIL PROTECTED]                    
>                                                                     |
>   |        Kopie:                                             
>                                                                     |
>   |        Thema:   RE: Transactions with PB-API              
>                                                                     |
>   
> >-------------------------------------------------------------
> ------------------------------------------------------------------|
> 
> 
> 
> 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]
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to