naming/src/main/java/org/jboss/as/naming/service/NamingService.java
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);
        }
    }
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);
        }
    }
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
Creates a new NamingServer and sets the naming context to use the naming server .