persistence@glassfish.java.net

Re: Stale data in the TopLink cache

From: Axl Mattheus <axl.mattheus_at_gmail.com>
Date: Mon, 26 Jan 2009 21:38:19 +0200

Björn,
I use EclipseLink to give me that functionality. It works very well.

ax/

2009/1/26 BJörn Lindqvist <bjourne_at_gmail.com>

> 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
>