users@glassfish.java.net

Re: Embedded glassfish 3.1 - EJB JUnit Testing not working- ...

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Fri, 17 Jun 2011 13:20:06 -0400

On Fri, Jun 17, 2011 at 1:12 PM, <forums_at_java.net> wrote:

> The ear file is created under java.io.temp dir (whatever it is on your
> system). You can set *system* property (i.e. not the one that you pass to
> the
> createEJBContainer call) org.glassfish.ejb.embedded.**
> keep-temporary-files=true
> to have the temp files left behind. By default they are marked as
> deleteOnExit.
>

Just a note of caution: on some platforms (Windows Server 2008 for sure) the
temporary files stick around anyway. I think there's a bug open to track
this.

Best,
Laird