Examples of VolatileParticipantService


Examples of org.wildfly.extension.rts.service.VolatileParticipantService

            final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) {

        final String socketBindingName = model.get(Attribute.SOCKET_BINDING.getLocalName()).asString();
        final String serverName = model.get(Attribute.SERVER.getLocalName()).asString();
        final String hostName = model.get(Attribute.HOST.getLocalName()).asString();
        final VolatileParticipantService volatileParticipantService = new VolatileParticipantService();
        final ServiceBuilder<VolatileParticipantService> volatileParticipantServiceBuilder = context
                .getServiceTarget()
                .addService(RTSSubsystemExtension.VOLATILE_PARTICIPANT, volatileParticipantService)
                .addListener(verificationHandler)
                .addDependency(SocketBinding.JBOSS_BINDING_NAME.append(socketBindingName), SocketBinding.class,
                        volatileParticipantService.getInjectedSocketBinding())
                .addDependency(UndertowService.virtualHostName(serverName, hostName), Host.class,
                        volatileParticipantService.getInjectedHost());

        volatileParticipantServiceBuilder.setInitialMode(ServiceController.Mode.ACTIVE);

        final ServiceController<VolatileParticipantService> volatileParticipantServiceController =
                volatileParticipantServiceBuilder.install();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.