public override void performOperationStep(DeploymentOperation operationContext) { PlatformServiceContainer serviceContainer = operationContext.ServiceContainer; BpmPlatformPlugins plugins = BpmPlatformPlugins.load(PluginsClassloader); JmxManagedBpmPlatformPlugins jmxManagedPlugins = new JmxManagedBpmPlatformPlugins(plugins); serviceContainer.startService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS, jmxManagedPlugins); }
/// <summary> /// {@inheritDoc} </summary> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override protected void performBoottime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException protected internal override void performBoottime(OperationContext context, ModelNode operation, ModelNode model) { // add deployment processors context.addStep(new AbstractDeploymentChainStepAnonymousInnerClass(this) , OperationContext.Stage.RUNTIME); // create and register the MSC container delegate. //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate processEngineService = new org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate(); MscRuntimeContainerDelegate processEngineService = new MscRuntimeContainerDelegate(); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.jboss.msc.service.ServiceController<org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate> controller = context.getServiceTarget().addService(org.camunda.bpm.container.impl.jboss.service.ServiceNames.forMscRuntimeContainerDelegate(), processEngineService).setInitialMode(org.jboss.msc.service.ServiceController.Mode.ACTIVE).install(); ServiceController <MscRuntimeContainerDelegate> controller = context.ServiceTarget.addService(ServiceNames.forMscRuntimeContainerDelegate(), processEngineService).setInitialMode(ServiceController.Mode.ACTIVE).install(); // discover and register bpm platform plugins BpmPlatformPlugins plugins = BpmPlatformPlugins.load(this.GetType().ClassLoader); MscBpmPlatformPlugins managedPlugins = new MscBpmPlatformPlugins(plugins); ServiceController <BpmPlatformPlugins> serviceController = context.ServiceTarget.addService(ServiceNames.forBpmPlatformPlugins(), managedPlugins).setInitialMode(ServiceController.Mode.ACTIVE).install(); }