Title: RE: [jBoss-User] Searching for a PK Generator Bean

I don't think including an MBean pre-packaged to do this is a good move.  The primary key of a table should be fairly carefully picked, and providing a key generator is encouraging people to use inappropriate primary keys.

How about providing an MBean which has _facilities_ for PK generation, but which requires the developer to provide a delegate class to do the actual generation?  So it deals with all the JMX stuff, exposes itself via RMI, has a standard interface for getting an Object PK, but doesn't do any generation, just takes the name of a class to use as a generator as a parameter, loads that and then delegates generation to it?

Just my $0.02
--
Tom Cook
Systems Development
Australian Submarine Corporation
Mersey Road
Outer Harbour

+61 8 8348 7645

"From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter.  I fully intend to read it one day."

        - Groucho Marx

    -----Original Message-----
    From:   Kimpton,C (Chris) [SMTP:[EMAIL PROTECTED]]
    Sent:   Monday, January 15, 2001 6:53 PM
    To:     'jBoss'
    Subject:        RE: [jBoss-User] Searching for a PK Generator Bean

    Hi,


    > do you guys think we should ship it as an MBean?

    > many people seem to think this is needed

    As one of the many people, I give it a +1.

    |
    |Take a look at the following thread from
    |www.theserverside.com, they have a link to a fully
    |implemented open source PK generator following the
    |HIGH / LOW pattern in EJB:
    |http://theserverside.com/discussion/thread.jsp?thread_id=1995
    |
    |HIGH/LOW Pattern:
    |http://www.sdmagazine.com/articles/1999/0012/0012p/0012p.htm?topic=uml
    |
    |I have not used it, but have been researching the same
    |thing today and this is what I found...
    |

    Equally, I have not used it - but need a PK generator bean...

    Chris

    ================================================================================================
    This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Co�peratieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK.

    The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery.




    --
    --------------------------------------------------------------
    To subscribe:        [EMAIL PROTECTED]
    To unsubscribe:      [EMAIL PROTECTED]
    List Help?:          [EMAIL PROTECTED]

Reply via email to