Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Beans Life

 
Troy Davidson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all. I'm an EJB 2.1 newbie so please forgive me if this is a dumb question...

I thought entity beans, after they are created and loaded with data from a database, will sit in memory for an amount of time and just be reused whenever they are needed. So, if the data in the database doesn't change, the entity beans don't have to go back and pull the data again. This will make accessing the data much faster.

But, I have a basic app that pulls some data from a database. When I refresh the page, and look in my log file, I can see that the data is being pulled again from the database. Is this normal or do I need to change some setting to make it do this?

I'm using JBoss for my server, if that matters.

Thanks for the help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic