users@glassfish.java.net

Re: Manual Update to Database Not Being Displayed In Application

From: <glassfish_at_javadesktop.org>
Date: Thu, 31 Jan 2008 20:20:23 PST

Hi marina, is it possible to clear that cache without restart glassfish, perhaps with entitymanager.clear(), called from a session bean, and:

1. Is this good programming practice?
2. Is this thread safe? One thread might be in different state with dirty enities about to persist or merge when other thread calls manager.clear() detaching all entities. Not sure what might happen?

Thanks!
[Message sent by forum member 'abelmj' (abelmj)]

http://forums.java.net/jive/thread.jspa?messageID=256925