• Post Reply Bookmark Topic Watch Topic
  • New Topic

entity bean design for performance  RSS feed

Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Once an entity ejb has been created, it corresponds to a record in the database and an entity EJB in memory. If the entity bean is not used for awhile, it may be passivated (cached to disc). My question is:

Once it is created, will it always either be in memory or cached to disc?

Also, when designing an EJB entity, is it useful for performance to separate changing data from static data? I am thinking that since the EJB is in memory, the database does not need to be accessed for the static data...only the changing data needs to be accessed via database.

Is this correct?

Thanks in advance.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!