>> I have seen the UUIDKeyGeneratorFactory, where can I find information
>> about how to write my own factory ?
>
> You need to implement two interfaces:
> org.jboss.ejb.plugins.keygenerator.KeyGeneratorFactory and
> org.jboss.ejb.plugins.keygenerator.KeyGenerator.
> Check the org.jboss.ejb.plugins.keygenerator.uuid for an example.
> This is in the server module. Count on my guidance. We are interested in
> contributions.

The generator I have in mind will increment the values.
In the interfaces, I cant see some init(startValue) method or something
similar. This method should be there and should be called on initializing
the generator.

The UUIDGeneratorFactory returns a new instance of
the generator every time. This is no problem with random keys,
but for incrementing, I have to synchronize the multiple instances
of the keygenerator in some way.

Does somebody have any comments on that or can point me in the
right direction ? Thanks in advance

Stefan


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to