@Override public void dispose() throws GlassFishException { decoratedGf.dispose(); }
@Override public void dispose() throws GlassFishException { decoratedGf.dispose(); }
public void run() { try { if (gf != null) { gf.stop(); gf.dispose(); } } catch (Exception ex) { } } });
public void run() { try { if (gf != null) { gf.stop(); gf.dispose(); } } catch (Exception ex) { } } });
void stop() { if (state == CLOSED) { return; } try { server.stop(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot stop embedded server", e); } finally { try { server.dispose(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot dispose embedded server", e); } state = CLOSED; } }
void stop() { if (state == CLOSED) { return; } try { server.stop(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot stop embedded server", e); } finally { try { server.dispose(); } catch (GlassFishException e) { _logger.log(Level.WARNING, "Cannot dispose embedded server", e); } state = CLOSED; } }
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"); }
@Override public synchronized void shutdown() throws GlassFishException { for (Object gf : gfMap.values()) { try { ((GlassFish) gf).dispose(); } catch (IllegalStateException ex) { // ignore. } } gfMap.clear(); try { shutdownInternal(); } catch (GlassFishException ex) { logger.log(Level.WARNING, LogFacade.CAUGHT_EXCEPTION, ex.getMessage()); } }
@Override public synchronized void shutdown() throws GlassFishException { for (Object gf : gfMap.values()) { try { ((GlassFish) gf).dispose(); } catch (IllegalStateException ex) { // ignore. } } gfMap.clear(); try { shutdownInternal(); } catch (GlassFishException ex) { logger.log(Level.WARNING, LogFacade.CAUGHT_EXCEPTION, ex.getMessage()); } }
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 synchronized void shutdown() throws GlassFishException { // make a copy to avoid ConcurrentModificationException for (GlassFish gf : new ArrayList<GlassFish>(gfs)) { if (gf.getStatus() != GlassFish.Status.DISPOSED) { try { gf.dispose(); } catch (GlassFishException e) { e.printStackTrace(); } } } gfs.clear(); shutdownInternal(); System.out.println("Completed shutdown of GlassFish runtime"); }
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 synchronized void shutdown() throws GlassFishException { // make a copy to avoid ConcurrentModificationException for (GlassFish gf : new ArrayList<GlassFish>(gfs)) { if (gf.getStatus() != GlassFish.Status.DISPOSED) { try { gf.dispose(); } catch (GlassFishException e) { e.printStackTrace(); } } } gfs.clear(); shutdownInternal(); System.out.println("Completed shutdown of GlassFish runtime"); }
gf.dispose(); } catch (Exception ex) {
gf.dispose(); } catch (Exception ex) {
glassFish.dispose();