This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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