/** * Start all non-started names service * @throws NameServiceException if an exception occure at starting time */ public static void startNonStartedNS() throws NameServiceException { if (TraceCarol.isDebugJndiCarol()) { TraceCarol.debugJndiCarol("NameServiceManager.startNonStartedNS()"); } // start name services for (Enumeration e = nsTable.keys() ; e.hasMoreElements() ;) { String k = (String)e.nextElement(); NameService currentNS = (NameService)nsTable.get(k); try { currentNS.start(); if (TraceCarol.isInfoCarol()) { TraceCarol.infoCarol("Name service for "+k+" is started on port "+currentNS.getPort()); } } catch (NameServiceException nse) { // do nothing, just trace if (TraceCarol.isDebugJndiCarol()) { TraceCarol.debugJndiCarol("NameServiceManager.startNonStartedNS() can not start name service: "+k); } } } }