persistence@glassfish.java.net

Re: Glassfish Shutdown with JPA

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Wed, 15 Oct 2008 11:19:06 -0700

Can you please give some more details on what do you mean by "does not
appear to be saving the JPA persisted objects before shutdown.". Objects
saved using em.persist() will be saved to database at each transaction
completion. There is nothing special you will need to do.

-Mitesh

Dru Devore wrote:
> I have an application which does not appear to be saving the JPA
> persisted objects before shutdown.
>
> Yes, the objects are being persisted before the shutdown but it
> appears that they are not making it out of the cache. Is there
> something I have to do during shutdown of the application server to
> ensure the objects are actually stored.
>
>