> Not necessarily - I would not intend to persist the generator key value on
> each call for 'getNetId()' - I would not care too much for the sequence of
> the generated numbers rather than their uniqueness.

So you're going for BMP then? Or do you want to do this with stateless
session beans only?

> > By
> > wrapping it in a stateless session bean you can "batch" keys.
> >
>
> The jboss specific approach that you mentioned in your previuos e-mail is
> what worries me :)

I only mentioned that since you asked for singletons. I am not in any way
suggesting that you should use that to solve this particular problem, since
it would a) be introducing an unnecessary bottleneck b) be jBoss specific.

/Rickard



Reply via email to