Hi Christoph,
Christoph Sturm wrote:
> Hi ojb team!
>
> I am converting a project to use ojb, and i wonder if i'd better use the
> persistence broker or odmg. Reading the faq i came to the conclusion
> that odmg is always better because it supports more features.
Here is a rule of thumb:
if you build little demo applications PB is very nice to use.
Using PB is also very useful in batch programming (mass operations)
if you want to build "real" (multi-user, multi-transaction)-apps the
ODMG layer is much better.
> But then i
> read a posting on theserverside.com which says that the persistence
> broker performance is (much?) better than the odmg api.
If you look a mass-operation performance using the PB is much faster.
If you want to build typical web-apps with many users but short
transaction, ODMG is OK!
> Some neat features like querybyexample seem to be available only in the
> PB. Or is there a way to access the broker from the odmg side of ojb?
>
You can safely mix PB and ODMG API! So it's pretty OK to load Objects
with a ojb.broker.query.Query and use them within an ODMG transaction.
Have a look at ojb.odmg.oql.OqlQueryImpl.execute() how this is done!
hope you'll enjoy OJB,
Thomas
> Tia
> chris
>
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> _______________________________________________
> Objectbridge-users mailing list
> Obj...@li...
> https://lists.sourceforge.net/lists/listinfo/objectbridge-users
>
>
>
|