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

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

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

Middleware Technologies 229<br />

The MQIS provides intelligent routing and supports transactional<br />

management, similar <strong>to</strong> MQSeries, though this is usually accomplished<br />

with the assistance of MTS. MSMQ also provides some of the following<br />

features:<br />

• Prioritization — Messages are sorted by priority within the queue.<br />

Messages with high priority are processed before messages with low<br />

priority.<br />

• Encryption — Messages may be declared as public or private. Private<br />

messages will be encrypted by MSMQ and decrypted upon receipt by<br />

the receiver.<br />

• Component Streaming — MSMQ allows COM/COM+ components<br />

<strong>to</strong> be serialized in<strong>to</strong> a message and reconstituted on the receiving<br />

end.<br />

Java message service (JMS)<br />

The Java message service (JMS) is a recent addition <strong>to</strong> the J2EE and<br />

EJB specification. J2EE (discussed in the section on Distributed Objects)<br />

is a quickly evolving distributed object standard developed by Sun<br />

Microsystems. Realizing the importance of messaging in distributed<br />

systems, Sun has developed the JMS API, allowing Java applications <strong>to</strong><br />

send and receive messages.<br />

JMS is not a traditional stand-alone MOM solution like MQSeries,<br />

but rather a J2EE-specific messaging solution. The JMS API adds <strong>to</strong> a<br />

common J2EE API and provider framework that enables the development<br />

of portable, message-based applications in the Java programming<br />

language.<br />

JMS provides a common interface <strong>to</strong> standard messaging pro<strong>to</strong>cols<br />

and <strong>to</strong> special messaging services in support of Java programs. JMS<br />

supports point-<strong>to</strong>-point and publish-and-subscribe models.<br />

A JMS application is composed of the following parts (see Figure 8.6):<br />

• JMS provider is a messaging system that implements the JMS<br />

interfaces and provides administrative and control features.<br />

• JMS clients are Java applications that send and receive messages.<br />

• JMS messages are standard messages consisting of a header and<br />

body.

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

Saved successfully!

Ooh no, something went wrong!