18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

y """X,<br />

./ \ Request<br />

I Client J^^^^^^T<br />

\ J ' w ~~ Response<br />

<strong>Integration</strong> Patterns 75<br />

1 Server<br />

Figure 3.20. — Synchronous communication (Request/Response)<br />

as TP moni<strong>to</strong>rs, distributed objects and message oriented middleware<br />

(MOM).<br />

A2A integration requires integration of new technology with the old,<br />

realizing a common architecture where all business-enabling applications<br />

are able <strong>to</strong> communicate with each other. It enables companies <strong>to</strong><br />

connect and coordinate data and events among multiple, crossorganization<br />

applications.<br />

Application oriented integration is primarily synchronous in nature,<br />

i.e., it is based on request/reply interactions between the client (requesting<br />

program) and the server (responding program) (see Figure 3.20). Thus,<br />

the middleware supporting this integration pattern has <strong>to</strong> provide adapters<br />

and an adapter <strong>to</strong>olkit, <strong>to</strong> develop cus<strong>to</strong>m adapters that support<br />

synchronous program invocation.<br />

In this section, we will discuss APIs and RPCs. The discussion on<br />

different technologies such as CORBA, RMI and TP moni<strong>to</strong>rs is provided<br />

in the chapter on middleware technologies.<br />

3.4.1. Application Programming Interfaces (APIs)<br />

An application programming interface is a group of functions or methods<br />

defined by programs, which external programs can invoke <strong>to</strong> interact<br />

(select information, update information, control the state or notify the<br />

events) with the underlying applications. Just as a keyboard is the<br />

interface for a computer, an API is the software interface for applications,<br />

programs and operating systems. An invocation of each method of an<br />

API is supposed <strong>to</strong> generate a desired outcome. APIs encapsulate the

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

Saved successfully!

Ooh no, something went wrong!