Extended messaging - sending messages

To send messages, applications that use extended messaging call a method on a sender bean. A sender bean turns its method invocation into a JMS message, then passes that message to JMS. If needed, the sender bean can retrieve a response message, then translate that message into a result value and return it to the caller. If data mapping is used, the method that invokes a sender bean is unaware of the original JMS message. The sender bean methods can use data mapping to build JMS messages from data passed on the method call. An application calling a sender bean to send messages to a JMS destination defined by an output port and to receive a reply by the receiveResponse() method of the sender bean.

Sending messages with extended messaging. This figure shows an application calling a sender bean to send messages to the JMS destination defined on an output port. The application also calls the receiveResponse() method of the sender bean to receive a reply to the original message sent. For more information about what is shown in this figure, see the text that accompanies this figure.

A sender bean is an enterprise bean (stateless session bean) that can be built by WebSphere Studio Application Developer. A sender bean should not contain any application logic, to help preserve the separation between the messaging and business logic.

Each method defined on a class that implements a sender bean has one of the following modes of interaction (which is defined when the sender bean is built). The interaction extends the sender interface to address the issue of synchronizing anonymous invocations.


Related concepts
Extended messaging - receiving messages
Extended messaging - handling late responses
Extended messaging - data mapping
Extended messaging - transactional support
Extended messaging - application usage scenarios



Searchable topic ID:   cmc_ovw05
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/cmm/concepts/cmc_ovw05.html

Library | Support | Terms of Use | Feedback