AW: SequenceManagerHighLowImpl

Längerich, Bernd <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi Armin,

thanks again for your response.

Armin wrote:
> Längerich wrote:
> > Is it sufficient/possible to overwrite the afterStore() 
> method of the
> > sequence manager?
> 
> Yep it's possible. Assume you want to lookup the 
> HLSequence-object for 
> the current used (fixed) field and invalidate the current 
> used PK value 
> or declare that the next sequence value has to greater than this to 
> avoid duplicate PK values. Think this should work (except if an 
> concurrent thread request the next value before the current 
> thread can 
> invalidate it).

OK, I played around a little bit and overwrote the afterStore method (empty implementation, however it never gets called!?
What am I missing? I placed a breakpoint in my code, but it never reaches it.
My code is somhehow simple, writeing a line to stderr to see if anything happens at all.

If the code is of any interest:  http://rafb.net/p/hknTM276.html

Bernd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.