Package org.jboss.as.naming.remote

Examples of org.jboss.as.naming.remote.RemoteNamingServerService


        newControllers.add(target.addService(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, new NamingStoreService(remoteExposedNamingStore))
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .addListener(verificationHandler)
                .install());

        final RemoteNamingServerService remoteNamingServerService = new RemoteNamingServerService();
        newControllers.add(
            target.addService(RemoteNamingServerService.SERVICE_NAME, remoteNamingServerService)
                .addDependency(RemotingServices.SUBSYSTEM_ENDPOINT, Endpoint.class, remoteNamingServerService.getEndpointInjector())
                .addDependency(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, NamingStore.class, remoteNamingServerService.getNamingStoreInjector())
                .addInjection(remoteNamingServerService.getExecutorServiceInjector(), Executors.newFixedThreadPool(10))
                .addListener(verificationHandler)
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .install()
        );
View Full Code Here


        installRuntimeServices(context, verificationHandler, newControllers);
    }

    void installRuntimeServices(final OperationContext context, ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {

        final RemoteNamingServerService remoteNamingServerService = new RemoteNamingServerService();

        final ServiceBuilder<RemoteNamingService> builder = context.getServiceTarget().addService(RemoteNamingServerService.SERVICE_NAME, remoteNamingServerService);
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
        }
        final ServiceController<RemoteNamingService> controller = builder
                .addDependency(RemotingServices.SUBSYSTEM_ENDPOINT, Endpoint.class, remoteNamingServerService.getEndpointInjector())
                .addDependency(ContextNames.EXPORTED_CONTEXT_SERVICE_NAME, NamingStore.class, remoteNamingServerService.getNamingStoreInjector())
                .addInjection(remoteNamingServerService.getExecutorServiceInjector(), Executors.newFixedThreadPool(10))
                .setInitialMode(ServiceController.Mode.ACTIVE)
                .install();
        if (newControllers != null) {
            newControllers.add(controller);
        }
View Full Code Here

TOP

Related Classes of org.jboss.as.naming.remote.RemoteNamingServerService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.