This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Container Managed Entity beans are giving duplicate primary key on heavy load.

vc java
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In our application we are using container managed entity beans for generating primary keys. We are using ejbLoad() for selecting and ejbStore() for incrementing the primary key.
This works fine on normal load conditions, but on heavy loads entity beans are generating duplicate keys.
We have clustered production enviornment.

Below is the Key Generation code:

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic