Exemple #1
0
        protected internal virtual void undeployBpmPlatform(LifecycleEvent @event)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.apache.catalina.core.StandardServer server = (org.apache.catalina.core.StandardServer) event.getSource();
            StandardServer server = (StandardServer)@event.Source;

            containerDelegate.ServiceContainer.createUndeploymentOperation("undeploy BPM platform").addAttachment(TomcatAttachments.SERVER, server).addStep(new StopJobExecutorStep()).addStep(new StopManagedThreadPoolStep()).addStep(new StopProcessApplicationsStep()).addStep(new StopProcessEnginesStep()).addStep(new UnregisterBpmPlatformPluginsStep()).execute();

            LOG.camundaBpmPlatformStopped(server.ServerInfo);
        }
Exemple #2
0
        public virtual void lifecycleEvent(LifecycleEvent @event)
        {
            if (Lifecycle.START_EVENT.Equals(@event.Type))
            {
                // the Apache Tomcat integration uses the Jmx Container for managing process engines and applications.
                containerDelegate = (RuntimeContainerDelegateImpl)org.camunda.bpm.container.RuntimeContainerDelegate_Fields.INSTANCE.get();

                deployBpmPlatform(@event);
            }
            else if (Lifecycle.STOP_EVENT.Equals(@event.Type))
            {
                undeployBpmPlatform(@event);
            }
        }