Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User »

Re: [JBoss-user] Calling UUIDKeyGeneratorFactoryService from EJB

Alexey Loubyansky

2003-11-18

Replies:

This is from JDBCKeyGeneratorCreateCommand:

    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
> JBoss-user@(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
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user


©2008 junlu.com - Jax Systems, LLC, U.S.A.