How can I create an Embedded GlassFish Server File System?
I tried:
BootstrapProperties bootstrapProperties = new BootstrapProperties();
bootstrapProperties.setInstallRoot("glassfish");
GlassFishRuntime runtime =
GlassFishRuntime.bootstrap(bootstrapProperties);
GlassFish glassFish = runtime.newGlassFish();
glassFish.start();
System.out.println("Press Enter to stop server");
// wait for Enter
new BufferedReader(new InputStreamReader(System.in)).readLine();
glassFish.dispose();
runtime.shutdown();
But the directory "glassfish" + contents wasn't created. Only a temporary
filesystem gets created in the tmp directory.