09.11.2012 Views

Default Messaging Provider Problem Determination - IBM Redbooks

Default Messaging Provider Problem Determination - IBM Redbooks

Default Messaging Provider Problem Determination - IBM Redbooks

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.

Figure 18 Messages waiting for mediation<br />

This scenario is only one in which messages seem to disappear. There are<br />

others which you should also investigate, such as the following:<br />

► The message has expired.<br />

► The mediation might have discarded the message (see “Symptom: Mediation<br />

implemented but messages disappear” on page 43).<br />

► The messaging engine might have discarded the message based on its<br />

reliability.<br />

► The message might have been directed to an exception destination.<br />

Symptom: Mediation implemented but messages disappear<br />

Mediation depends on user written code and sometimes puts the reliability of<br />

message delivery outside the control of the messaging engine. If the mediation<br />

has been correctly implemented and started, it is quite possible that the<br />

mediation code processes and removes a message from the target destination.<br />

The mediation code is implemented using the MediationHandler interface that<br />

uses a handle method.<br />

Example 16 Mediation handler that discards a message<br />

public class LoggingMediation implements MediationHandler {<br />

/* (non-Javadoc)<br />

* @see<br />

com.ibm.websphere.sib.mediation.handler.MediationHandler#handle(javax.xml.rpc.handler.MessageCo<br />

ntext)<br />

*/<br />

public boolean handle(MessageContext arg0) throws MessageContextException {<br />

WebSphere Application Server V6: <strong>Default</strong> <strong>Messaging</strong> <strong>Provider</strong> <strong>Problem</strong> <strong>Determination</strong> 43

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

Saved successfully!

Ooh no, something went wrong!