/** * Removes the naming server from the naming context. * * @param context The stop context. */ public void stop(StopContext context) { NamingContext.setActiveNamingStore(null); }
/** * Creates a new NamingServer and sets the naming context to use the naming server. * * @param context The start context * @throws StartException If any errors occur setting up the naming server */ public void start(StartContext context) throws StartException { ROOT_LOGGER.startingService(); try { NamingContext.setActiveNamingStore(namingStore.getValue()); } catch (Throwable t) { throw new StartException(NamingLogger.ROOT_LOGGER.failedToStart("naming service"), t); } }
/** * Removes the naming server from the naming context. * * @param context The stop context. */ public void stop(StopContext context) { NamingContext.setActiveNamingStore(null); }
/** * Removes the naming server from the naming context. * * @param context The stop context. */ public void stop(StopContext context) { NamingContext.setActiveNamingStore(null); }
@Override public void uninitialize() { NamingContext.setActiveNamingStore(new InMemoryNamingStore()); } }
/** * Removes the naming server from the naming context. * * @param context The stop context. */ public synchronized void stop(StopContext context) { NamingContext.setActiveNamingStore(null); try { namingStore.close(); } catch (NamingException e) { throw new RuntimeException(e); } }
@Override public void uninitialize() { NamingContext.setActiveNamingStore(new InMemoryNamingStore()); } }
/** * Creates a new NamingServer and sets the naming context to use the naming server. * * @param context The start context * @throws StartException If any errors occur setting up the naming server */ public synchronized void start(StartContext context) throws StartException { ROOT_LOGGER.startingService(); try { NamingContext.setActiveNamingStore(namingStore); } catch (Throwable t) { throw new StartException(MESSAGES.failedToStart("naming service"), t); } }
/** * Creates a new NamingServer and sets the naming context to use the naming server. * * @param context The start context * @throws StartException If any errors occur setting up the naming server */ public void start(StartContext context) throws StartException { ROOT_LOGGER.startingService(); try { NamingContext.setActiveNamingStore(namingStore.getValue()); } catch (Throwable t) { throw new StartException(NamingLogger.ROOT_LOGGER.failedToStart("naming service"), t); } }
/** * Creates a new NamingServer and sets the naming context to use the naming server. * * @param context The start context * @throws StartException If any errors occur setting up the naming server */ public void start(StartContext context) throws StartException { ROOT_LOGGER.startingService(); try { NamingContext.setActiveNamingStore(namingStore.getValue()); } catch (Throwable t) { throw new StartException(NamingLogger.ROOT_LOGGER.failedToStart("naming service"), t); } }