The HiLo generator should be run only on one server. But, I think, it should not be hard to add remote access to the generator.
alex
Barlow, Dustin wrote:
Thanks for the info.
One other quick question about the uniqueness of the IDs. I am planning to use the ID that the generator returns as a process flow ID. The ID would be established at the entry point of the system and then used throughout the flow. I presume that I would want to favour using the UUID over the HiLo generator if I always need a unique ID. Is the UUID always unique in all cases including across multiple clustered JBoss instances?
Dustin
-----Original Message----- From: Alexey Loubyansky To: [EMAIL PROTECTED] Sent: 8/20/2003 1:02 PM Subject: Re: [JBoss-user] [3.2.2RC2] Using the UUID or HiLoID generator
Hello Dustin,
you can use generators in your applications. For example:
InitialContext ic = new InitialContext();
// get generator factory from JNDI
IDGeneratorFactory keyGeneratorFactory = (IDGeneratorFactory)ic.lookup(idFactoryName);
// get generator instance (perhaps, should be made a // @jmx.managed-operation) idGenerator = keyGeneratorFactory.getIDGenerator();
alex
Barlow, Dustin wrote:
Is there a way to use the UUID or the HiLoID generator outside of JDO
or
CMP? Can I call this service from a SSB, or another JMX component?
I looked in the jmx-console for what methods were exposed in the UUIDGeneratorFactory, but didn't see anything other then the default
start,
stop, init methods.
Dustin
------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from
the
best hiring companies. http://www.dice.com/index.epl?rel_code=104 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
