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.

220 <strong>B2B</strong> <strong>Integration</strong> — A <strong>Practical</strong> <strong>Guide</strong> <strong>to</strong> <strong>Collaborative</strong> E-<strong>commerce</strong><br />

The typical MOM system contains the following components:<br />

• Messages;<br />

• Queues — the physical MOM server; and<br />

• Messaging Clients — the sender and receiver.<br />

Messages — Messages generally consist of two parts: a header and a<br />

body. The header contains information <strong>to</strong> route and identify each message.<br />

The body contains the application data or message content. Messages<br />

can be assigned priorities so that higher priority messages can be<br />

processed before lower priority messages, improving overall system<br />

performance.<br />

Queues — Queues are the mailboxes or inboxes of MOM. Queues<br />

receive and s<strong>to</strong>re messages until the receiving applications are ready <strong>to</strong><br />

retrieve each message. Queues may be physically located on the sending<br />

computer, the receiving computer, or both.<br />

Queues are managed by a message queue server that is independent<br />

of either the application client or application server. The server may<br />

also manage several queues on one host machine.<br />

Queues may be persistent or non-persistent. Non-persistent queues<br />

s<strong>to</strong>re messages in memory, which means that if the message queuing<br />

server fails messages could be lost. Persistent queues will write messages<br />

<strong>to</strong> a physical disk, ensuring that they can be recovered in the event of a<br />

server failure.<br />

Persistent queues can provide guaranteed delivery of messages.<br />

Guaranteed delivery can be beneficial where the reliability of the<br />

network or applications themselves cannot be guaranteed. Persistent<br />

queues typically require more resources and can be slower than nonpersistent<br />

queues, but are often a necessity in most critical business<br />

applications.<br />

Message Clients — Message clients reside with client applications and<br />

provide an API <strong>to</strong> allow the application <strong>to</strong> send and receive messages.<br />

Using the API, an application is able <strong>to</strong> initiate a session, prepare a<br />

message, set routing parameters and send messages <strong>to</strong> the intended<br />

queue.

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

Saved successfully!

Ooh no, something went wrong!