Discussion:
until successful
David Dossot
2012-07-10 01:28:45 UTC
Permalink
until-successful is completely asynchronous, even for the first attempt, so it never participates to any transaction.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-14 16:01:49 UTC
Permalink
In above case even if there is transformationexception it is sending the message to timeout queue. Can you tell me what the failure expression signifies in this case.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
David Dossot
2012-07-14 16:19:49 UTC
Permalink
What's "timeout queue"?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-14 16:21:49 UTC
Permalink
its queue configured where the message needs to go if it receive socket timeout exception for given retry.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
David Dossot
2012-07-14 16:23:49 UTC
Permalink
Is this in the context of until-successful? If yes, do you mean the dead letter queue?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-14 16:30:49 UTC
Permalink
Apologies as my question did not displayed the configuration i did.It got hidden.
<br /><br />
Its the dlq configured. Even if there is any other exception in transformer the message is moving to queue configured in untill sucessful. However i want the transformer exception to move to some another queue.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-14 16:31:49 UTC
Permalink
<code>
<br />
&lt;until-successful objectStore-ref=&quot;objectStore&quot; deadLetterQueue-ref=&quot;timeout&#46;queue&quot; failureExpression=&quot;exception-type:java&#46;net&#46;SocketTimeoutException&quot; maxRetries=&quot;2&quot; secondsBetweenRetries=&quot;60&quot;&#47;&gt;
<br />
&lt;Outbound&gt; &lt;Transformer&gt;&lt;&#47;Transformer&gt;&lt;&#47;Outbound&gt;
<br />
&lt;&#47;Untill-successfull&gt;
<br />
</code>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
David Dossot
2012-07-14 16:48:49 UTC
Permalink
Much better with the config thanks :)
<br /><br />
until-successful supports only one queue where the message is sent when all attempts have failed.
<br /><br />
Now please explain what is the strategy in case of transformer exception? Stop until successful and immediately send to another queue?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-14 16:50:49 UTC
Permalink
Yes that right the strategy is to stop untill sucessfull in case of transformation exception and send it to another queue.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
David Dossot
2012-07-14 17:00:49 UTC
Permalink
OK, for this I would try to move all the content of until-successful in a private flow and use a choice exception strategy to handle transformation exception in one manner and let other exceptions fail the flow. I would then call this private flow with a flow-ref from within the until-successful.
<br /><br />
Not sure it will work, never tried it, but that's what I would try...
<br /><br />
See. <a href="http://www.mulesoft.org/documentation/display/MULE3USER/Choice+Exception+Strategy" rel="nofollow">http://www.mulesoft.org/documentation...</a>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-14 18:47:49 UTC
Permalink
Thanks David I tried that, i am getting simple issue in putting choice-exception-strategy below choice tag.
<br />
Invalid content was found starting with element 'choice-exception-strategy'. One of '{"<a href="http://www.mulesoft.org/schema/mule/core&quot;:abstract-message-processor" rel="nofollow">http://www.mulesoft.org/schema/mule/c...</a>, "<a href="http://www.mulesoft.org/schema/mule/core&quot;:abstract-outbound-endpoint" rel="nofollow">http://www.mulesoft.org/schema/mule/c...</a>, "<a href="http://www.mulesoft.org/schema/mule/core&quot;:response" rel="nofollow">http://www.mulesoft.org/schema/mule/c...</a>, "<a href="http://www.mulesoft.org/schema/mule/core&quot;:abstract-exception-strategy" rel="nofollow">http://www.mulesoft.org/schema/mule/c...</a>, "<a href="http://www.mulesoft.org/schema/mule/core&quot;:abstract-message-info-mapping}" rel="nofollow">http://www.mulesoft.org/schema/mule/c...</a
' is expected.
<br />
Can we use choice-exception-strategy below the choice tag doing some other flow. Let me know in case any more info is required.
<br /><br />
<code>
<br />
&lt;flow name= abc&gt;
<br />
&lt;choice&gt;
<br />
-------------------
<br />
---------------------
<br />
&lt;&#47;choice&gt;
<br />
&lt;choice-exception-strategy&gt;
<br />
&lt;catch-exception-strategy when=&quot;exception-type:org&#46;mule&#46;api&#46;transformer&#46;TransformerException&quot; &gt;
<br />
&lt;wire-tap&gt;&lt;processor ref=&quot;exceptionQueue&quot;&#47;&gt;&lt;&#47;wire-tap&gt;
<br />
&lt;&#47;catch-exception-strategy&gt;
<br />
&lt;&#47;choice-exception-strategy&gt;
<br />
&lt;&#47;flow&gt;
<br />
</code>
<br /><br />
I am calling this abc from until successful.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
David Dossot
2012-07-16 17:09:51 UTC
Permalink
Maybe remove the choice-exception-strategy, just use the catch-exception-strategy.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Abhijeet Thakre
2012-07-17 12:07:51 UTC
Permalink
that was problem of Mule version. I am using mule 3.2.2. How can i achieve the catch based on the type of exception in mule 3.2.2 since i only want to catch the transformer exception and leave the rest to until successful.
<br />
Default exception strategy catches all of them.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...