public virtual void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) { try { if (jobHandlerActivation != null) { jobHandlerActivation.stop(); } } finally { jobHandlerActivation = null; } }
// JobHandler activation / deactivation /////////////////////////// //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) throws javax.resource.ResourceException public virtual void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) { if (jobHandlerActivation != null) { //JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method: throw new ResourceException("The camunda BPM job executor can only service a single MessageEndpoint for job execution. " + "Make sure not to deploy more than one MDB implementing the '" + typeof(JobExecutionHandler).FullName + "' interface."); } JobExecutionHandlerActivation activation = new JobExecutionHandlerActivation(this, endpointFactory, (JobExecutionHandlerActivationSpec)spec); activation.start(); jobHandlerActivation = activation; }