@Override public void shutdown() throws GlassFishException { decoratedGfr.shutdown(); }
@Override public void shutdown() throws GlassFishException { decoratedGfr.shutdown(); }
public void run() { try { gfr.shutdown(); } catch (Exception ex) { System.err.println("Error stopping framework: " + ex); ex.printStackTrace(); } } });
public void run() { try { gfr.shutdown(); } catch (Exception ex) { System.err.println("Error stopping framework: " + ex); ex.printStackTrace(); } } });
public void stop() { try { gf.stop(); gf.dispose(); gf = null; gfr.shutdown(); gfr = null; } catch (Exception e) { throw new RuntimeException("Shutdown failed", e); } log.info("GF has been shutdown"); }
public void stop(BundleContext context) throws Exception { if (nonEmbedded) { System.out.println("We are in non-embedded mode, so " + context.getBundle() + " has nothing to do."); return; } try { // gf can be null - especially in non-embedded mode. if (gf != null && gf.getStatus() != GlassFish.Status.DISPOSED) { gf.dispose(); // dispose calls stop } } finally { gf = null; } if (gfr != null) { // gfr is non-null only if this activator has bootstrapped, else it's null. gfr.shutdown(); gfr = null; } }
public void stop(BundleContext context) throws Exception { if (nonEmbedded) { System.out.println("We are in non-embedded mode, so " + context.getBundle() + " has nothing to do."); return; } try { // gf can be null - especially in non-embedded mode. if (gf != null && gf.getStatus() != GlassFish.Status.DISPOSED) { gf.dispose(); // dispose calls stop } } finally { gf = null; } if (gfr != null) { // gfr is non-null only if this activator has bootstrapped, else it's null. gfr.shutdown(); gfr = null; } }
/** * stops the embedded server instance, any deployed application will be stopped * ports will be closed and shutdown services will be ran. * EmbeddedFileSystem will be released, meaning that any managed directory will * be deleted rendering the EmbeddedFileSystem unusable. * * @throws LifecycleException if the server cannot shuts down properly */ public synchronized void stop() throws LifecycleException { try { if (glassfish != null) { glassfish.stop(); logger.finer("GlassFish has been stopped"); } if (glassfishRuntime != null) { glassfishRuntime.shutdown(); logger.finer("GlassFishruntime has been shutdown"); } } catch (Exception ex) { logger.log(Level.WARNING, ex.getMessage(), ex); } finally { synchronized(servers) { servers.remove(serverName); } fileSystem.get().preDestroy(); } }
/** * stops the embedded server instance, any deployed application will be stopped * ports will be closed and shutdown services will be ran. * EmbeddedFileSystem will be released, meaning that any managed directory will * be deleted rendering the EmbeddedFileSystem unusable. * * @throws LifecycleException if the server cannot shuts down properly */ public synchronized void stop() throws LifecycleException { try { if (glassfish != null) { glassfish.stop(); logger.finer("GlassFish has been stopped"); } if (glassfishRuntime != null) { glassfishRuntime.shutdown(); logger.finer("GlassFishruntime has been shutdown"); } } catch (Exception ex) { logger.log(Level.WARNING, ex.getMessage(), ex); } finally { synchronized(servers) { servers.remove(serverName); } fileSystem.getService().preDestroy(); } }
runtime.shutdown(); // dispose of the old one
runtime.shutdown(); // dispose of the old one