db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahler Thomas <thomas.mah...@itellium.com>
Subject RE: ODMG Tutorial Take 1
Date Wed, 01 Oct 2003 12:04:26 GMT
Hi Charles,

You are absolutely right, a tx.begin() call is mandatory!

Thomas

> -----Original Message-----
> From: Charles Anthony [mailto:charles.anthony@hpdsoftware.com]
> Sent: Wednesday, October 01, 2003 1:46 PM
> To: 'OJB Developers List'
> Subject: RE: ODMG Tutorial Take 1
> 
> 
> Hi;
> 
> I'm just trying to build a test case to illustrate a problem 
> I may (or may
> not !) have with ODMG. We've built a layer above ODMG, so I 
> virtually never
> use it directly.
> 
> Which is a round about way of saying I looked and followed 
> the tutorial -
> and I think you've missed a kind-of-fundamental  thing : tx.begin()
> 
> You must begin the transaction before you use it, otherwise you get a 
> 
> org.odmg.TransactionNotInProgressException: Transaction was 
> not open, call
> tx.begin() before perform action, current status is: 
> STATUS_NO_TRANSACTION
> exception
> 
> HTH
> 
> Charles.
> 
> > -----Original Message-----
> > From: Brian McCallister [mailto:mccallister@forthillcompany.com]
> > Sent: 30 September 2003 20:38
> > To: OJB Developers List
> > Subject: ODMG Tutorial Take 1
> > 
> > 
> > Just checked in take one on the new ODMG tutorial. I am 
> *not* an ODMG 
> > expert, or even, in my opinion, proficient with the ODMG API 
> > so I would 
> > very much appreciate feedback on idiomatic usage etc.
> > 
> > I copied most of the usage from tutorial2, but have a few direct 
> > questions.
> > 
> > Why persist new object via a write lock instead of 
> > Database.makePersistent()?
> > 
> > In the update example, is the lock required in order to change the 
> > persistent version of the object?
> > 
> > Etc.
> > 
> > As it is only in CVS, I have a copy up at 
> > http://kasparov.skife.org/ojb/odmg-tutorial.html
> > 
> > Thanks,
> > Brian
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> > For additional commands, e-mail: ojb-dev-help@db.apache.org
> > 
> > 
> 
> 
> This email and any attachments are strictly confidential and 
> are intended
> solely for the addressee. If you are not the intended 
> recipient you must
> not disclose, forward, copy or take any action in reliance on 
> this message
> or its attachments. If you have received this email in error 
> please notify
> the sender as soon as possible and delete it from your 
> computer systems.
> Any views or opinions presented are solely those of the 
> author and do not
> necessarily reflect those of HPD Software Limited or its affiliates.
> 
>  At present the integrity of email across the internet cannot 
> be guaranteed
> and messages sent via this medium are potentially at risk.  
> All liability
> is excluded to the extent permitted by law for any claims 
> arising as a re-
> sult of the use of this medium to transmit information by or to 
> HPD Software Limited or its affiliates.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 


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


Mime
View raw message