users@glassfish.java.net

Re: Embedded - creates gfembed<random-number>tmp with installation root set

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 06 Jan 2010 12:14:28 -0800

This property applies only when you use GlassFish embedded API directly,
not with the EJBContainer.

regards,
-marina

glassfish_at_javadesktop.org wrote:
> According to the documentation
>
> http://docs.sun.com/app/docs/doc/821-1208/gjldt?a=view
>
> "If the [b]installation root[/b] directory is not specified, embedded Sun GlassFish Enterprise Server creates a directory named gfembedrandom-numbertmp in the current working directory, where random-number is a randomly generated 19-digit number. Embedded Sun GlassFish Enterprise Server then copies configuration files into this directory."
>
> in org.glassfish.api.embedded.Server:
> if (builder.fileSystem==null || builder.fileSystem.[b]instanceRoot[/b]==null) {
> File f;
> try {
> String tmpDir = System.getProperty("glassfish.embedded.tmpdir");
> if (tmpDir==null) {
> tmpDir = System.getProperty("user.dir");
> }
> f = File.createTempFile("gfembed", "tmp", new File(tmpDir));
> } catch (IOException e) {
> throw new RuntimeException(e);
> }
>
> Even if I set the instanceRoot property EJBContainerProviderImpl never passes this to the Server class, is there anyway to get around this?
> [Message sent by forum member 'dwsmith75' (dsmith_at_nesmi.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=379097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>