Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP Beans and Jboss4.0.4Ga for Concurent requests  RSS feed

Vinaya Naidu
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am observing the container synchronizes the bean with the underlying storage by calling the bean's ejbLoad() and ejbStore(), to ensure the clients that the data they access and process in the business method, is not stale.

this is the sequence ejbLoad()-business method-ejbStore().
let's have a two-client-scenario where we have two entity bean instances.

bold ones are methods used by first client.

first client

(1)ejbLoad()--(2)business method

second client comes in to the picture, while the data is still being processed by the first client


first client stores the data in to db


won't the data the second client is about to process goes stale?
How the container solves the problem? or is this a problem at all?
we are Using Jboss4.0.4Ga .
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!