try {
KeyGeneratorFactory keyGeneratorFactory = (KeyGeneratorFactory) new InitialContext().lookup(factoryName);
keyGenerator = keyGeneratorFactory.getKeyGenerator();
} catch (NamingException e) {
throw new DeploymentException("Error: can't find key generator factory: " + factoryName, e);
} catch (Exception e) {
throw new DeploymentException("Error: can't create key generator instance; key generator factory: " + factoryName, e);
}
Ricardo Arg�ello wrote:
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=/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
