The JMS API adds to this a common API and a provider
framework that enables the development of portable, message-based applications in
the Java programming language.
??? ??? ??? ??? ??? ???
Access Web Services Using the JMS Channel
[ 200 ]
The JMS API enhances J2EE in the following ways:
Message-driven beans based on the JMS enable the asynchronous
consumption of the JMS messages.
JMS message exchange can participate in the Java Transaction
API (JTA) transactions.
The JCA interfaces allow JMS implementations from different vendors to be
externally plugged into a J2EE environment.
Since MOM defines the backbone for many ESB implementations, JMS plays a critical
role in Java-based ESB.
Web Service and JMS
Reliability is of the prime concern in critical applications, especially in interactions
involving financial transactions. Consider the scenario of fund transfer where we
debit one account and credit another account with the same amount of money.
We cannot allow either of these transactions to fail or to debit twice in an account
as a result of message duplications. Unreliable transport channels like HTTP and
non-reliability in message delivery will impede the correctness of the mission
critical transactions.
Pages:
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283