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

Create successful ePaper yourself

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

3<strong>Using</strong> the <strong>TCP</strong> Counted Outbound AdapterEnsLib.<strong>TCP</strong>.CountedOutboundAdapter contains methods that an <strong>Ensemble</strong> business operation can call to read or write blocksof data across the <strong>TCP</strong> connection. <strong>Ensemble</strong> acts as a <strong>TCP</strong> client exchanging blocks of data <strong>with</strong> a <strong>TCP</strong> listener. The blocklength specified in the first 4 bytes of the block. This convention allows an <strong>Ensemble</strong> business operation to send requeststo an external <strong>TCP</strong> server for fulfillment. The adapter makes no decisions about the data it relays out to the external system.It simply maps the request from the business operation to a format that is acceptable to the external system.This chapter explains how to use the EnsLib.<strong>TCP</strong>.CountedOutboundAdapter. It discusses the following topics:• Background Information• <strong>Using</strong> the Adapter• Creating a New Business Operation Class• Sample Business Operation Class Code• Available Helper Methods• Adapter Settings3.1 Background InformationYou can simply set up the EnsLib.<strong>TCP</strong>.CountedOutboundAdapter as instructed in the next section, “<strong>Using</strong> the Adapter.”However, some developers want more details about how a business operation communicates <strong>with</strong> its configured adapter.This section provides those details.<strong>Using</strong> <strong>TCP</strong> <strong>Adapters</strong> <strong>with</strong> <strong>Ensemble</strong> 13

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

Saved successfully!

Ooh no, something went wrong!