users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Wed, 06 Jan 2010 12:02:28 PST

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