/** * Adds deployments on startup arg line. Only available in the Hollow Swarm mode. * */ protected void addDeployables() { if (isHollowSwarm() && !getConfiguration().getDeployables().isEmpty()) { getLogger().info("Deploying to Hollow Swarm.", getClass().getCanonicalName()); for (Deployable deployable : getConfiguration().getDeployables()) { swarmJvmLauncher.addAppArgument(new File(deployable.getFile())); } } }
if (getConfiguration().getDeployables() != null) for (Deployable toDeploy : getConfiguration().getDeployables())
for (Deployable deployable : getConfiguration().getDeployables())
for (Deployable deployable : getConfiguration().getDeployables())
/** * {@inheritDoc} */ @Override protected void doStart(JvmLauncher java) throws Exception { this.getLogger().debug("Starting container " + getName(), this.getClass().getName()); java.setJarFile(new File(getConfiguration().getHome(), "bin/server.jar")); java.setSystemProperty("org.apache.geronimo.server.dir", getConfiguration().getHome()); java.setSystemProperty("java.io.tmpdir", new File(getConfiguration().getHome(), "/var/temp").getPath()); java.start(); waitForCompletion(true); // deploy scheduled deployables GeronimoInstalledLocalDeployer deployer = new GeronimoInstalledLocalDeployer(this); for (Deployable deployable : this.getConfiguration().getDeployables()) { deployer.redeploy(deployable); } }
/** * {@inheritDoc} */ @Override protected void doStart(JvmLauncher java) throws Exception { this.getLogger().debug("Starting container " + getName(), this.getClass().getName()); java.setJarFile(new File(getConfiguration().getHome(), "bin/server.jar")); java.setSystemProperty("org.apache.geronimo.server.dir", getConfiguration().getHome()); java.setSystemProperty("java.io.tmpdir", new File(getConfiguration().getHome(), "/var/temp").getPath()); java.start(); waitForCompletion(true); // deploy scheduled deployables GeronimoInstalledLocalDeployer deployer = new GeronimoInstalledLocalDeployer(this); for (Deployable deployable : this.getConfiguration().getDeployables()) { deployer.redeploy(deployable); } }
for (Deployable deployable : getConfiguration().getDeployables()) for (Deployable deployable : getConfiguration().getDeployables())
configuration.deployDatasources(this); for (Deployable deployable : this.getConfiguration().getDeployables())
configuration.deployDatasources(this); for (Deployable deployable : this.getConfiguration().getDeployables())
/** * Add the cargo deployables and the Cargo Ping Check. * * @throws Exception thrown if the deployables could not be added */ protected void addDeployables() throws Exception { // Deploy statically deployed WARs for (Deployable deployable : getConfiguration().getDeployables()) { // Only deploy WARs (packed or unpacked). if (deployable.getType() == DeployableType.WAR) { addHandler(createHandler(deployable)); } else { throw new ContainerException("Only WAR archives are supported for deployment in " + "Jetty. Got [" + deployable.getFile() + "]"); } } // Deploy CPC. Note: The Jetty Server class offers a isStarted() // method but there is no isStopped() so until we find a better // way, we need a CPC. addHandler(createHandler("/cargocpc", new File(getConfiguration().getHome(), "cargocpc.war").getPath())); }
/** * Add the cargo deployables and the Cargo Ping Check. * * @throws Exception thrown if the deployables could not be added */ protected void addDeployables() throws Exception { // Deploy statically deployed WARs for (Deployable deployable : getConfiguration().getDeployables()) { // Only deploy WARs (packed or unpacked). if (deployable.getType() == DeployableType.WAR) { addHandler(createHandler(deployable)); } else { throw new ContainerException("Only WAR archives are supported for deployment in " + "Jetty. Got [" + deployable.getFile() + "]"); } } // Deploy CPC. Note: The Jetty Server class offers a isStarted() // method but there is no isStopped() so until we find a better // way, we need a CPC. addHandler(createHandler("/cargocpc", new File(getConfiguration().getHome(), "cargocpc.war").getPath())); }
for (Deployable deployable : this.getConfiguration().getDeployables())
for (Deployable deployable : this.getConfiguration().getDeployables())
start.setAutostart(daemonAutostartContainer); start.setContainer(installedLocalContainer); start.setDeployables(localContainer.getConfiguration().getDeployables()); start.setHandleId(daemonHandleId); if (getZipURLInstaller() != null)
start.setAutostart(daemonAutostartContainer); start.setContainer(installedLocalContainer); start.setDeployables(localContainer.getConfiguration().getDeployables()); start.setHandleId(daemonHandleId); if (getZipURLInstaller() != null)
configuration.deployDatasources(this); for (Deployable deployable : this.getConfiguration().getDeployables())
configuration.deployDatasources(this); for (Deployable deployable : this.getConfiguration().getDeployables())