13.07.2015 Views

Using SQL Adapters with Ensemble - InterSystems Documentation

Using SQL Adapters with Ensemble - InterSystems Documentation

Using SQL Adapters with Ensemble - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Customizing Startup and TeardownExecuted when the production is stopped. By default, this method does nothing.For reference, the following sections describes the exact startup and teardown sequences.4.2 The Startup SequenceThe startup sequence is the same for business services and business operations:1. At production startup, <strong>Ensemble</strong> calls the OnProductionStart method of each business serviceand business operation class listed in the production configuration.2. <strong>Ensemble</strong> creates a background processes for each of the business services and business operationsin the production configuration. <strong>Ensemble</strong> can allocate more than one background process perbusiness host; the PoolSize of the business host specifies the number of background processes tocreate.3. Within each background process, <strong>Ensemble</strong> creates an instance of the business host class and aninstance of its associated adapter class. <strong>Ensemble</strong> then sets the configurable property values ofthose instances.4. <strong>Ensemble</strong> calls the OnInit methods of the business host objects and the associated adapter objects,respectively.4.3 The Teardown SequenceThe startup sequence is slightly different for business services and business operations:1. During production shutdown:• <strong>Ensemble</strong> disables each business service; no more incoming requests are accepted for thisproduction.• <strong>Ensemble</strong> waits for each business operation to reach a quiescent state. That is, it waits untileach business operation has completed all of its synchronous requests.2. The OnTearDown method in each adapter is called.3. All adapter and business host objects are destroyed and their background processes are killed.4. The OnProductionStop class method for each business host is called, once for each configureditem of that class in the production.32 <strong>Using</strong> <strong>SQL</strong> <strong>Adapters</strong> <strong>with</strong> <strong>Ensemble</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!