hmm... shouldn't a basic
em.flush(); / em.clear();
clear the cache?
then you would simply have to create a page/bean that calls that
method on an entitymanager .
if that works, doing that through a mbean should work as well.
On Wed, Jun 30, 2010 at 9:16 PM, <glassfish_at_javadesktop.org> wrote:
> We've got a read mostly application whose database gets updated via an external script once every few weeks or so, but toplink's cache is enabled so none of those updates are visible to the application. Restarting the server clears the cache, but it's down right tacky to be doing that all the time, does anyone know of another asadmin command I can run which will clear the cache?
>
> Failing that, any advise on developing an mbean to do it?
>
> Thanks,
> Loren
> [Message sent by forum member 'loren_']
>
> http://forums.java.net/jive/thread.jspa?messageID=476445
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
--
Dominik Dorn
http://dominikdorn.com
http://twitter.com/domdorn
Tausche Deine Lernunterlagen auf http://www.studyguru.eu !