You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Müller <ch...@gmail.com> on 2013/04/01 13:35:11 UTC

Re: SMPP stop route problem

Please find my comments inline...

Best,
Christian


On Wed, Mar 27, 2013 at 9:04 AM, fclose <fr...@closebase.com> wrote:

> Christian, I still have a question about what you said
>
>
>
> Christian Mueller wrote
> > If you want to return another error code, simply catch the exception in
> > your route and rethrow an org.jsmpp.extra.ProcessRequestException (with
> > the
> > error code you want) which is returned to the SMSC.
>
>
> As my route is defined using the spring dsl and looks like below, how would
> you recommend me to catch the exception and throw another one ?
>
Exactly. You can use the doTry() doCatch() DSL.


> using a failure handler ?
> maybe it would be converting the route to the java dsl
>
>
>
> <camel:errorHandler id="smsReceivingErrorHandler" type="DeadLetterChannel"
> deadLetterUri="smsReceivingDLQueue">
>     <camel:redeliveryPolicy maximumRedeliveries="0" logStackTrace="true"
> logHandled="false"/>
> </camel:errorHandler>
>
>
> <camel:route id="smsReceivingRoute" autoStartup="false"
> errorHandlerRef="smsReceivingErrorHandler">
>     <camel:from ref="smscReceiving"/>
>     <camel:to ref="smsProcessing"/>
> </camel:route>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/SMPP-stop-route-problem-tp5729769p5729903.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>