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: Move new services to kernel
Date Tue, 06 Jul 2004 11:20:08 GMT
That's even better !

> -----Original Message-----
> From: Armin Waibel [mailto:arminw@apache.org]
> Sent: Tuesday, July 06, 2004 12:46 PM
> To: OJB Developers List
> Subject: Re: Move new services to kernel
> 
> 
>  > In addition I'd like to have a little Broker Method for 
> computing an 
> objects
>  > Identity
>  > e.g.
>  > Identity getIdentity(Object obj);
>  >
>  > This would save the User some typing work for obtaining ids.
> 
> Have a look in my last post about IdentityFactory service. 
> You can now use
> 
> Identity oid = broker.serviceIdentity().buildIdentity(obj);
> 
> to create Identity objects.
> 
> regards,
> Armin
> 
> Mahler Thomas wrote:
> 
> > Hi all,
> > 
> > 
> >>Hi all,
> >>
> >>think (after Brian's auto-dirtying suggestion) we should discuss in 
> >>general about moving services from OTM/ODMG to the kernel. Which 
> >>services are useful in kernel which not.
> > 
> > 
> > I agree, this is a very useful discussion. 
> >  
> > 
> >>One thing is object status detecting (e.g. used by Brian 
> >>auto-dirtying), 
> >>classes help to make object snapshots should be available in kernel 
> >>(Maybe something like a SnapshotBuilder and SnapshotStrategy).
> > 
> > 
> > +1
> > 
> > 
> >>Another service is pessimistic locking. Why not move it to 
> >>kernel, then 
> >>it will be possible to use pessimistic locking in PB-api. No 
> >>automatic 
> >>locking, only the locking service so that PB-api user can 
> >>lock objects 
> >>and can detect if objects are locked.
> >>
> >>Currently the locking implementations used by ODMG and OTM 
> >>are bound to 
> >>their API, why not make it independent and only pass String 
> >>objects to 
> >>the locking service, e.g. lock(String tx_key, String 
> >>obj_oid)? This will 
> >>make pessimistic locking independent and the implementation of 
> >>distributed locking maps will be easier.
> > 
> > 
> > +1 
> > 
> > 
> > In addition I'd like to have a little Broker Method for 
> computing an objects
> > Identity
> > e.g.
> > Identity getIdentity(Object obj);
> > 
> > This would save the User some typing work for obtaining ids.
> > 
> > Thomas
> > 
> > 
> > 
> > 
> > 
> >>regards,
> >>Armin
> >>
> >>------------------------------------------------------------
> ---------
> >>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
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> 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