AW: [OJB-developers] High Low Sequence
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-03-21 16:48:43
|
Hi all, <snip> > > Another possible problem with the SequenceManagerHighLowImpl > (and possibly > the DefaultImpl as well) is that if several PersistenceBroker > acessed the > same DB there could be race conditions, so we'd need to lock > the obj_hl_seq > table (or at least one row). The question is wether it is > possible/good > style to use the ODMG API (which seems the only way to do > locking in OJB) > within a core class. (I've never actually seen such a race > condition and > haven't run any tests, but I once noticed it and there don't > seem to be any > pre-cautions for this; please correct me if I'm wrong). > I think you are right! currently there is no locking on the ojb_hl_seq. But I think we can use optimistic locking (which is implemented on the PB level) to make sequence numbering thread and multi-user safe. Thomas > > Regards Rainer > > regards > Joachim Sauer > > > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers > |