Great, that makes sense. I'll give the Persistance Broker API a try. -----Original Message----- From: Thomas Mahler [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 2:58 AM To: OJB Users List Subject: Re: Updating with ODMG
Hi Joe, The ODMG spec has no notion of long transactions. Thus changes to objects must always take place *within* a the begin() commit() boundaries of an ODMG transaction! If you want to use the ODMG in your SessionBean scenario you have to implement your own simple long transaction mechanism. (In the OTM package we will have such a feature implemented.) On the other hand ODMG is not the most natural fit for such a scenario. I recommemd to use the PersistenceBroker API for such cases! cheers, Thomas Joe McGlynn wrote: > I am having an odd experience with updating an already persisted > object. > > What I wanted to do was to query for an object, modify attributes > (outside of the begin/end transaction) and then re-save it (i.e. > update). The behavior I see is that the update silently fails. > > I am able to create objects and save them, query for saved objects and > update saved objects by first querying and then modifying them within > the same transaction (as in UCEditProduct), so I don't believe this is > a fundamental configuration issue. I am using a SessionBean to find > the object, modifying it on the client side and then passing it back > to the EJB server for updating. > > I've been able to reproduce this behavior with a very simple test > case, attached. > > What is the correct procedure for modifying objects outside of a > transaction and then saving the updates with ODMG? > > Joe > > > > ---------------------------------------------------------------------- > -- > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
