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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content