Search in sources :

Example 1 with EjbIIOPDeploymentUnitProcessor

use of org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor in project wildfly by wildfly.

the class EJB3IIOPAdd method performBoottime.

@Override
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
    final Boolean enableByDefault = EJB3IIOPResourceDefinition.ENABLE_BY_DEFAULT.resolveModelAttribute(context, model).asBoolean();
    final Boolean useQualifiedName = EJB3IIOPResourceDefinition.USE_QUALIFIED_NAME.resolveModelAttribute(context, model).asBoolean();
    final IIOPSettingsService settingsService = new IIOPSettingsService(enableByDefault, useQualifiedName);
    context.addStep(new AbstractDeploymentChainStep() {

        protected void execute(DeploymentProcessorTarget processorTarget) {
            ROOT_LOGGER.debug("Adding EJB IIOP support");
            processorTarget.addDeploymentProcessor(EJB3Extension.SUBSYSTEM_NAME, Phase.POST_MODULE, Phase.POST_MODULE_EJB_IIOP, new EjbIIOPDeploymentUnitProcessor(settingsService));
        }
    }, OperationContext.Stage.RUNTIME);
    newControllers.add(context.getServiceTarget().addService(IIOPSettingsService.SERVICE_NAME, settingsService).install());
}
Also used : DeploymentProcessorTarget(org.jboss.as.server.DeploymentProcessorTarget) AbstractDeploymentChainStep(org.jboss.as.server.AbstractDeploymentChainStep) EjbIIOPDeploymentUnitProcessor(org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor)

Example 2 with EjbIIOPDeploymentUnitProcessor

use of org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor in project wildfly by wildfly.

the class EJB3IIOPAdd method performBoottime.

@Override
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
    final boolean enableByDefault = EJB3IIOPResourceDefinition.ENABLE_BY_DEFAULT.resolveModelAttribute(context, model).asBoolean();
    final boolean useQualifiedName = EJB3IIOPResourceDefinition.USE_QUALIFIED_NAME.resolveModelAttribute(context, model).asBoolean();
    final IIOPSettingsService settingsService = new IIOPSettingsService(enableByDefault, useQualifiedName);
    context.addStep(new AbstractDeploymentChainStep() {

        protected void execute(DeploymentProcessorTarget processorTarget) {
            ROOT_LOGGER.debug("Adding Jakarta Enterprise Beans IIOP support");
            processorTarget.addDeploymentProcessor(EJB3Extension.SUBSYSTEM_NAME, Phase.POST_MODULE, Phase.POST_MODULE_EJB_IIOP, new EjbIIOPDeploymentUnitProcessor(settingsService));
        }
    }, OperationContext.Stage.RUNTIME);
    context.getCapabilityServiceTarget().addCapability(EJB3IIOPResourceDefinition.EJB3_IIOP_SETTINGS_CAPABILITY, settingsService).install();
}
Also used : DeploymentProcessorTarget(org.jboss.as.server.DeploymentProcessorTarget) AbstractDeploymentChainStep(org.jboss.as.server.AbstractDeploymentChainStep) EjbIIOPDeploymentUnitProcessor(org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor)

Aggregations

EjbIIOPDeploymentUnitProcessor (org.jboss.as.ejb3.deployment.processors.EjbIIOPDeploymentUnitProcessor)2 AbstractDeploymentChainStep (org.jboss.as.server.AbstractDeploymentChainStep)2 DeploymentProcessorTarget (org.jboss.as.server.DeploymentProcessorTarget)2