예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override protected void performRuntime(final org.jboss.as.controller.OperationContext context, final org.jboss.dmr.ModelNode operation, final org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
        protected internal override void performRuntime(OperationContext context, ModelNode operation, ModelNode model)
        {
            string      jobExecutorThreadPoolName        = SubsystemAttributeDefinitons.THREAD_POOL_NAME.resolveModelAttribute(context, model).asString();
            ServiceName jobExecutorThreadPoolServiceName = ServiceNames.forManagedThreadPool(jobExecutorThreadPoolName);

            performRuntimeThreadPool(context, model, jobExecutorThreadPoolName, jobExecutorThreadPoolServiceName);

            MscExecutorService service = new MscExecutorService();
            ServiceController <MscExecutorService> serviceController = context.ServiceTarget.addService(ServiceNames.forMscExecutorService(), service).addDependency(jobExecutorThreadPoolServiceName, typeof(ManagedQueueExecutorService), service.ManagedQueueInjector).setInitialMode(ServiceController.Mode.ACTIVE).install();
        }
예제 #2
0
        protected internal virtual void createProcessEngineJndiBinding(StartContext context)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.jboss.util.ProcessEngineManagedReferenceFactory managedReferenceFactory = new org.camunda.bpm.container.impl.jboss.util.ProcessEngineManagedReferenceFactory(processEngine);
            ProcessEngineManagedReferenceFactory managedReferenceFactory = new ProcessEngineManagedReferenceFactory(processEngine);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.jboss.msc.service.ServiceName processEngineServiceBindingServiceName = org.jboss.as.naming.deployment.ContextNames.GLOBAL_CONTEXT_SERVICE_NAME.append(org.camunda.bpm.BpmPlatform.APP_JNDI_NAME).append(org.camunda.bpm.BpmPlatform.MODULE_JNDI_NAME).append(processEngine.getName());
            ServiceName processEngineServiceBindingServiceName = ContextNames.GLOBAL_CONTEXT_SERVICE_NAME.append(BpmPlatform.APP_JNDI_NAME).append(BpmPlatform.MODULE_JNDI_NAME).append(processEngine.Name);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final String jndiName = org.camunda.bpm.BpmPlatform.JNDI_NAME_PREFIX + "/" + org.camunda.bpm.BpmPlatform.APP_JNDI_NAME + "/" + org.camunda.bpm.BpmPlatform.MODULE_JNDI_NAME + "/" +processEngine.getName();
            string jndiName = BpmPlatform.JNDI_NAME_PREFIX + "/" + BpmPlatform.APP_JNDI_NAME + "/" + BpmPlatform.MODULE_JNDI_NAME + "/" + processEngine.Name;

            // bind process engine service
            bindingService = BindingUtil.createJndiBindings(context.ChildTarget, processEngineServiceBindingServiceName, jndiName, managedReferenceFactory);

            // log info message
            LOGG.info("jndi binding for process engine " + processEngine.Name + " is " + jndiName);
        }
예제 #3
0
        /// <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();
        }