This is how I've called it from an EJB.
import org.jboss.ejb.plugins.keygenerator.KeyGenerator;
import org.jboss.ejb.plugins.keygenerator.KeyGeneratorFactory;
// get generator factory from JNDI
KeyGeneratorFactory keyGeneratorFactory =
(KeyGeneratorFactory) ctx.lookup("UUIDKeyGeneratorFactory");
KeyGenerator idGenerator = keyGeneratorFactory.getKeyGenerator();
String key (String) idGenerator.generateKey();
> -----Original Message-----
> From: Ricardo Arg�ello [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 18, 2003 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Calling UUIDKeyGeneratorFactoryService from EJB
>
>
> How can I invoke an MBean from a Session or Entity Bean?
>
> I want to call the UUIDKeyGeneratorFactoryService to generate primary
> keys for Entity Media Beans.
>
> Thanks,
>
> Ricardo Arg�ello
>
>
>
>
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/
> g22lp.tmpl
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user