10.07.2015 Views

Using TCP Adapters with Ensemble - InterSystems Documentation

Using TCP Adapters with Ensemble - InterSystems Documentation

Using TCP Adapters with Ensemble - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Using</strong> the <strong>TCP</strong> Counted Outbound AdapterFigure 3–1: Business Operation and <strong>Using</strong> the <strong>TCP</strong> Counted Outbound AdapterThe figure above shows the flow of a request from <strong>Ensemble</strong> out to an external system after you have set up an <strong>Ensemble</strong>business operation to work <strong>with</strong> an outbound adapter. The sequence is as follows:1. At production startup, <strong>Ensemble</strong> creates a background process for each business operation in the production configuration.<strong>Ensemble</strong> can allocate more than one background process per business operation. The business operation’sconfigured PoolSize specifies the number of background processes.2. Within each background process, <strong>Ensemble</strong> creates an instance of the business operation class and an instance of itsassociated outbound adapter class.3. <strong>Ensemble</strong> calls the OnInit() methods of the business operation object and outbound adapter object, respectively.4. Thereafter, whenever the production is running and the business operation is enabled and scheduled to be active, thefollowing sequence can occur:• The business operation receives an <strong>Ensemble</strong> request message.• The business operation’s message map matches the <strong>Ensemble</strong> request type <strong>with</strong> a business operation method.Note:The developer of each business operation class is responsible for writing its message map and methods.For instructions, see the next section, “<strong>Using</strong> the Adapter.”• The business operation method calls a method in the associated outbound adapter object.• The adapter method sends a request to the external system. If this request generates an acknowledgment or responseof some kind, the outbound adapter relays that data back to the business operation method that invoked it.• If the original <strong>Ensemble</strong> request message requires a response, the business operation returns it.14 <strong>Using</strong> <strong>TCP</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!