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.

<strong>Integration</strong> Patterns 79<br />

Messaging APIs — Messaging APIs provide a flexible message oriented<br />

interface that enables communication between message-based applications.<br />

The API makes it easy for enterprises <strong>to</strong> write business applications<br />

that asynchronously send and receive critical business data and events.<br />

For instance, the Java API for XML Messaging (JAXM) enables<br />

applications <strong>to</strong> send and receive document oriented XML messages<br />

using a pure Java API. With the use of JAXM, application developers can<br />

focus on building, sending, receiving and decomposing messages for their<br />

applications instead of programming low level XML communications<br />

routines.<br />

Component/Object APIs — Object APIs provide interfaces that can be<br />

used by applications <strong>to</strong> access different objects, which encapsulate the<br />

data and business processes.<br />

Several vendors of distributed component solutions such as DCOM,<br />

CORBA and EJB provide APIs <strong>to</strong> access remote objects.<br />

Data Management APIs — Data management APIs provide interfaces<br />

containing methods for directly accessing and manipulating an<br />

application's database or any other data source, internal or external <strong>to</strong><br />

the company. This API should not only allow the retrieval of downloaded<br />

data or data in databases, it should also support data management<br />

activities common <strong>to</strong> most applications. This API enables data<br />

management applications <strong>to</strong> be integrated much like ordinary software<br />

applications, as it provides a consistent, platform-independent interface<br />

for integration.<br />

A typical example of data management API is structured query<br />

language (SQL). Each database vendor implements and supports its<br />

own flavor of SQL. For example, Oracle provides PL/SQL, Sybase<br />

provides transact SQL.<br />

Sun's JDBC API is a Java API for accessing tabular data which<br />

makes it easy <strong>to</strong> send SQL statements <strong>to</strong> relational database systems<br />

and supports all dialects of SQL (see Figure 3.22). The JDBC API<br />

consists of a set of classes and interfaces written in the Java programming<br />

language that provides a standard API for <strong>to</strong>ol/database developers and<br />

makes it possible <strong>to</strong> write database applications using an all-Java API.<br />

The JDBC API contains two major sets of interfaces: the first is the

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

Saved successfully!

Ooh no, something went wrong!