Use of the HiLoKeyGenerator for EJB2 CMP EntityBeans in EAP6

Solution Verified - Updated -

Issue

  • I am migrating from EAP5 to EAP6 and did not find the MBean configuration for the HiLoKeyGeneratorFactory
  • how to configure the HiLoKey generator with the entity-command tag in jbosscmp-jdbc.xml
  • there is no standardjbosscmp-jdbc.xml where I have to configure the entity-command for the HiLoKey generator
  • if the HiLoKeyGenerator is used the entity creation will fail with a DuplicateKeyException

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.