persistence@glassfish.java.net

Stale data in the TopLink cache

From: BJörn Lindqvist <bjourne_at_gmail.com>
Date: Mon, 26 Jan 2009 18:32:27 +0100

Sorry if this question has already been asked 100 times before..

I have two jvm:s on two servers that both access the same database via
TopLink. When one jvm updates a table in the database, I want that
update to be immediately reflected when data is fetched from the
database at the other machine. I want this behaviour for all tables in
the database. Is there some way to accomplish this without having to
turn off the TopLink cache? Should toplink.cache.shared.default be set
to false or is there another way?


-- 
mvh Björn