RE: until successful

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
What's "timeout queue"? --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
Apologies as my question did not displayed the configuration i did.It got hidden.

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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi

<until-successful objectStore-ref="objectStore" deadLetterQueue-ref="timeout.queue" failureExpression="exception-type:java.net.SocketTimeoutException" maxRetries="2" secondsBetweenRetries="60"/>
<Outbound> <Transformer></Transformer></Outbound>
</Untill-successfull>
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
Much better with the config thanks :)

until-successful supports only one queue where the message is sent when all attempts have failed.

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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
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.

Not sure it will work, never tried it, but that's what I would try...

See. http://www.mulesoft.org/documentation... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
Thanks David I tried that, i am getting simple issue in putting choice-exception-strategy below choice tag.
Invalid content was found starting with element 'choice-exception-strategy'. One of '{"http://www.mulesoft.org/schema/mule/c..., "http://www.mulesoft.org/schema/mule/c..., "http://www.mulesoft.org/schema/mule/c..., "http://www.mulesoft.org/schema/mule/c..., "<a href="http://www.mulesoft.org/schema/mule/core&quot;:abstract-message-info-mapping}" rel="nofollow">http://www.mulesoft.org/schema/mule/c...' is expected.
Can we use choice-exception-strategy below the choice tag doing some other flow. Let me know in case any more info is required.


<flow name= abc>
<choice>
-------------------
---------------------
</choice>
<choice-exception-strategy>
<catch-exception-strategy when="exception-type:org.mule.api.transformer.TransformerException" >
<wire-tap><processor ref="exceptionQueue"/></wire-tap>
</catch-exception-strategy>
</choice-exception-strategy>
</flow>


I am calling this abc from until successful. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
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
Reply | Threaded
Open this post in threaded view
|

RE: until successful

Tashani Kathriarachchi
In reply to this post by Tashani Kathriarachchi
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.
Default exception strategy catches all of them. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email