Search in sources :

Example 6 with StartContext

use of org.jboss.msc.service.StartContext in project wildfly by wildfly.

the class RemoteNamingServerService method start.

public synchronized void start(StartContext context) throws StartException {
    try {
        final Context namingContext = new NamingContext(namingStore.getValue(), new Hashtable<String, Object>());
        remoteNamingService = new RemoteNamingService(namingContext);
        remoteNamingService.start(endpoint.getValue());
    } catch (Exception e) {
        throw new StartException("Failed to start remote naming service", e);
    }
}
Also used : StopContext(org.jboss.msc.service.StopContext) StartContext(org.jboss.msc.service.StartContext) NamingContext(org.jboss.as.naming.NamingContext) Context(javax.naming.Context) StartException(org.jboss.msc.service.StartException) NamingContext(org.jboss.as.naming.NamingContext) RemoteNamingService(org.wildfly.naming.client.remote.RemoteNamingService) IOException(java.io.IOException) StartException(org.jboss.msc.service.StartException)

Aggregations

StartContext (org.jboss.msc.service.StartContext)6 StopContext (org.jboss.msc.service.StopContext)5 Service (org.jboss.msc.service.Service)3 StartException (org.jboss.msc.service.StartException)3 Context (javax.naming.Context)2 NamingContext (org.jboss.as.naming.NamingContext)2 Module (org.jboss.modules.Module)2 ServiceName (org.jboss.msc.service.ServiceName)2 Closeable (java.io.Closeable)1 File (java.io.File)1 IOException (java.io.IOException)1 URL (java.net.URL)1 AccessController (java.security.AccessController)1 PrivilegedAction (java.security.PrivilegedAction)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 ExecutorService (java.util.concurrent.ExecutorService)1 Executors (java.util.concurrent.Executors)1 ThreadFactory (java.util.concurrent.ThreadFactory)1 CapabilityServiceSupport (org.jboss.as.controller.capability.CapabilityServiceSupport)1 EEModuleDescription (org.jboss.as.ee.component.EEModuleDescription)1