jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes Help on EJB 2.1 Entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Help on EJB 2.1 Entity" Watch "Help on EJB 2.1 Entity" New topic

Help on EJB 2.1 Entity

Raemond Lee

Joined: Mar 17, 2009
Posts: 2
I have to maintain web application which using EJB entity. However, everything when we need to update the data in the database, we need to restart the application server to make the EJB entity bean to recongize the new data. Is it the correct way or there is some other way to do to refresh the data?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33119

No. Once you close a transaction/start a new one, it should pick up the latest rows in the database.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Help on EJB 2.1 Entity
It's not a secret anymore!