Note that there are some explanatory texts on larger screens.

plurals
  1. POLogging SOAP errors in Mule ESB
    primarykey
    data
    text
    <p>I'm trying to get Mule to log the exception that my SOAP component throws in the following flow. For instance, if I pass it malformed xml as an input, in soapUI I get a meaningful output, but I want to be able to log this in either the console or to send it to a JMS queue.</p> <pre><code>&lt;jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616" validateConnections="true" doc:name="Active MQ"/&gt; &lt;flow name="CAB-Mule_WMBFlow1" doc:name="CAB-Mule_WMBFlow1"&gt; &lt;http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:8081/DemoCustomer" doc:name="HTTP" mimeType="text/xml"&gt; &lt;idempotent-redelivery-policy maxRedeliveryCount="3"&gt; &lt;dead-letter-queue&gt; &lt;vm:outbound-endpoint path="error-queue" /&gt; &lt;/dead-letter-queue&gt; &lt;/idempotent-redelivery-policy&gt; &lt;/http:inbound-endpoint&gt; &lt;cxf:jaxws-service port="80" serviceClass="com.mulesoft.demo.DemoCustomer" doc:name="SOAP"/&gt; &lt;component class="com.mulesoft.demo.DemoCustomerIntImpl" doc:name="Java"/&gt; &lt;jms:outbound-endpoint queue="StudioIN" connector-ref="Active_MQ" doc:name="JMS"/&gt; &lt;logger level="INFO" doc:name="Logger" message="Payload: #[payload]"/&gt; &lt;/flow&gt; &lt;flow name="error" doc:name="error"&gt; &lt;component class="com.mulesoft.demo.ExceptionService" doc:name="Java"/&gt; &lt;jms:outbound-endpoint queue="Error" connector-ref="Active_MQ" doc:name="JMS"/&gt; &lt;/flow&gt; </code></pre> <p>ExceptionService is just:</p> <pre><code>public class ExceptionService { public void onException(ExceptionMessage e) { System.err.println("EXCEPTION MESSAGE:::: " + e.getException().getMessage()); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload