Sending Messages to Existing Systems

Messaging systems can help you solve some of the woes you experience when you use s ockets. For example, using JMS to send messages, you can send a message as part of a transaction. If you roll the transaction back, you don't send the message.

Many mainframe systems support various types of messaging systems. One of the most popular messaging systems is one called MQSeries, available on IBM systems. IBM even makes a JMS interface for MQSeries so you can use it from an EJB.

Although your message might be part of a transaction, you might still have some problem completing a transaction. For example, suppose you create an application to book a seat on an airline. You create a session bean that stores the reservation ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.