IDGenerator... are from 4.0 as well as HiLo.
alex
Barlow, Dustin wrote:
Is it possible to have the following classes(interfaces) put in the jboss-client.jar as well so that I don't have to include server/<target>/lib/jboss.jar in the "client's" classpath? I can certainly make the change for my jboss build to do this, but i'd rather it be in the canonical source build if possible.
org/jboss/ejb/plugins/keygenerator/KeyGenerator.class org/jboss/ejb/plugins/keygenerator/KeyGeneratorFactory.class
Also, the code example written below references IDGeneratorFactory. I believe this should have been KeyGeneratorFactory, and that idGenerator would be declared as a KeyGenerator. I was unable to find any java file named IDGeneratorFactory or IDGenerator in the 3.2 or 4.0 codebase.
It might also be handy to have (as was suggested below) the getIDGenerator() exposed via the JMX interface (the actual method is getKeyGenerator() btw). I would still need the two interfaces above in the jboss-client.jar to call it. Not sure which approach is the preferred (ie JNDI lookup versus JMX lookup).
Dustin
-----Original Message-----
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:03 PM
To: [EMAIL PROTECTED]
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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
