Hello,
I have written a simple primary key generator for my entity beans. (For people who are not aware of the primary key generator problem, please see
this thread.)
It is a stateful session bean based on the HIGH/LOW principle. I have a pktable in my database (MySQL) which has just one auto_increment column. This column gives the High values. The I am pasting below is self explanatory.
Could anybody please be kind enough to critisize it? I want to know in what situation it might fail.