aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
internet detective

Joined: May 26, 2003
Posts: 29220

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

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Help on EJB 2.1 Entity
Similar Threads
XML data transfer?
Why or (when to) use Entity Relationship ?
Recommended way of getting entity manager from pojo class
JDBC in Servlets or EJB