private void setGlassFishProperties(GlassFishProperties props, EmbeddedFileSystem fs) { props.setProperty("-type", "EMBEDDED"); props.setProperty("org.glassfish.persistence.embedded.weaving.enabled", "false"); if (fs != null) { String instanceRoot = fs.instanceRoot != null ? fs.instanceRoot.getAbsolutePath() : null; if (instanceRoot != null) { props.setInstanceRoot(fs.instanceRoot.getAbsolutePath()); } if (fs.configFile != null) { props.setConfigFileURI(fs.configFile.toURI().toString()); } if (fs.autoDelete) { props.setProperty("org.glassfish.embeddable.autoDelete", "true"); } } // TODO :: Support modification of jmxPort }
private void setGlassFishProperties(GlassFishProperties props, EmbeddedFileSystem fs) { props.setProperty("-type", "EMBEDDED"); props.setProperty("org.glassfish.persistence.embedded.weaving.enabled", "false"); if (fs != null) { String instanceRoot = fs.instanceRoot != null ? fs.instanceRoot.getAbsolutePath() : null; if (instanceRoot != null) { props.setInstanceRoot(fs.instanceRoot.getAbsolutePath()); } if (fs.configFile != null) { props.setConfigFileURI(fs.configFile.toURI().toString()); } if (fs.autoDelete) { props.setProperty("org.glassfish.embeddable.autoDelete", "true"); } } // TODO :: Support modification of jmxPort }
if (instanceRootValue == null) { instanceRootValue = createTempInstanceRoot(gfProps); gfProps.setInstanceRoot(instanceRootValue);
if (instanceRootValue == null) { instanceRootValue = createTempInstanceRoot(gfProps); gfProps.setInstanceRoot(instanceRootValue);
glassFishProperties.setInstanceRoot(l.instance_root.getCanonicalPath()); } else if (l.domain_file != null) { _logger.info("[EJBContainerProviderImpl] Using config file location: " + l.domain_file.toURI().toString());
BootstrapProperties bootstrapProperties = new BootstrapProperties(); bootstrapProperties.setInstallRoot("C:\\applicationserverdir"); GlassFishRuntime glassfishRuntime = GlassFishRuntime.bootstrap(bootstrapProperties); GlassFishProperties glassfishProperties = new GlassFishProperties(); glassfishProperties.setInstanceRoot("C:\\applicationserverdir\\domains\\myJavaFXAppDomain"); glassfishProperties.setPort("http-listener", 8080); glassfishProperties.setPort("https-listener", 8181); GlassFish glassfish = glassfishRuntime.newGlassFish(glassfishProperties); glassfish.start();
_logger.fine("[EJBContainerProviderImpl] Reusing instance location at: " + l.instance_root); glassFishProperties.setInstanceRoot(l.instance_root.getCanonicalPath()); } else { glassFishProperties.setConfigFileURI(l.domain_file.toURI().toString());
cleanup = false; serverProps.setInstanceRoot(configuration.getInstanceRoot()); shouldSetPort = false;