Pardon my ignorance, but what is a HiLo key generator? Many years ago, we 
used an incrementing number, but reversed the bits, so that the keys were 
well distributed. Is this the same thing? Should I have patented the idea 
:-) ? Too late I suppose!
Ciao,
Jonathan O'Connor
Development Manager
XCOM Dublin
Phone: +353 1 872 3305
Mobile: +353 86 824 0736




Alex Loubyansky <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
05.03.2003 19:36
Please respond to jboss-user

 
        To:     JBoss-User <[EMAIL PROTECTED]>
        cc: 
        Subject:        [JBoss-user] HiLo key generator


I just added HiLo key generator to HEAD.
Now, using entity-command configuration, it's possible to create
entities with either "known" or unknown primary keys using UUID or
HiLo key generators.

Key generator is deployed with *-service.xml. Here is an excerpt from
hilo-service.xml:
   <!--
      | HiLoKeyGeneratorFactory
   -->
   <mbean
 code="org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory"
      name="jboss:service=KeyGeneratorFactory,type=HiLo">

      <attribute 
name="FactoryName">java:/HiLoKeyGeneratorFactory</attribute>
      <attribute name="DataSource">java:/DefaultDS</attribute>
      <attribute 
name="TransactionManager">java:/TransactionManager</attribute>
      <attribute name="TableName">JBOSS_SEQUENCE</attribute>
      <attribute name="ColumnName">ID</attribute>
      <attribute name="ColumnSQLType">INTEGER</attribute>
      <attribute name="BlockSize">100</attribute>
   </mbean>

If the table does not exist at deployment, it is created.
Is there a need to backport it to 3.2 and/or 3.0 versions?

Thanks,
alex




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The 
debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 

and Linux platforms. Try it free. www.etnus.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to