Re: Camel multicast and exception

2013-09-26 Thread Christian Posta
Take a look at try-catch block. Or try adding exception handlers to each
individual "direct" route?


On Thu, Sep 26, 2013 at 8:55 AM, Erwin Etchart wrote:

> Based on this example of a camel route
>
>  aggregationRepositoryRef="aggregator.container.2" completionSize="2"
> completionTimeout="36">
> 
> aggregationKey
> 
> 
> 
> 
> 
> 
>  
>
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> I want to retry independent from each other if one fails. The behavior now
> is if one fails the three routes will be retried. I tried to do a custom
> error hander but the behavior was the same.
>
> ¿Any idea?
>
> Best regards
>
> Erwin
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta


Re: Camel multicast and exception

2013-09-26 Thread Erwin Etchart
Thanks for your response Christian,

Do you know if i try with "try catch" how can i do to define a  redelivery
police of this specific direct component?


Regards

Erwin




2013/9/26 Christian Posta 

> Take a look at try-catch block. Or try adding exception handlers to each
> individual "direct" route?
>
>
> On Thu, Sep 26, 2013 at 8:55 AM, Erwin Etchart  >wrote:
>
> > Based on this example of a camel route
> >
> >  > aggregationRepositoryRef="aggregator.container.2" completionSize="2"
> > completionTimeout="36">
> > 
> > aggregationKey
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> >
> >
> >
> > 
> > 
> > 
> > 
> > 
> >   />
> > 
> > 
> > 
> > 
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >  />
> > 
> > 
> > 
> > 
> >
> > 
> >
> >
> > 
> > 
> > 
> > 
> > 
> >  />
> > 
> > 
> > 
> > 
> > 
> >
> > I want to retry independent from each other if one fails. The behavior
> now
> > is if one fails the three routes will be retried. I tried to do a custom
> > error hander but the behavior was the same.
> >
> > ¿Any idea?
> >
> > Best regards
> >
> > Erwin
> >
>
>
>
> --
> *Christian Posta*
> http://www.christianposta.com/blog
> twitter: @christianposta
>


Re: Camel multicast and exception

2013-09-26 Thread Christian Posta
You can specify an error handler for the specific route which is where you
specify redelivery semantics:

http://camel.apache.org/error-handler.html


On Thu, Sep 26, 2013 at 9:33 AM, Erwin Etchart wrote:

> Thanks for your response Christian,
>
> Do you know if i try with "try catch" how can i do to define a  redelivery
> police of this specific direct component?
>
>
> Regards
>
> Erwin
>
>
>
>
> 2013/9/26 Christian Posta 
>
> > Take a look at try-catch block. Or try adding exception handlers to each
> > individual "direct" route?
> >
> >
> > On Thu, Sep 26, 2013 at 8:55 AM, Erwin Etchart  > >wrote:
> >
> > > Based on this example of a camel route
> > >
> > >  > > aggregationRepositoryRef="aggregator.container.2" completionSize="2"
> > > completionTimeout="36">
> > > 
> > > aggregationKey
> > > 
> > > 
> > >  />
> > >  />
> > >  />
> > > 
> > >  
> > >
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  >  />
> > > 
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  uri="bean:spring.remote?method=springRemotingTest2(${body})"
> > />
> > > 
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  uri="bean:spring.remote?method=springRemotingTest3(${body})"
> > />
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > I want to retry independent from each other if one fails. The behavior
> > now
> > > is if one fails the three routes will be retried. I tried to do a
> custom
> > > error hander but the behavior was the same.
> > >
> > > ¿Any idea?
> > >
> > > Best regards
> > >
> > > Erwin
> > >
> >
> >
> >
> > --
> > *Christian Posta*
> > http://www.christianposta.com/blog
> > twitter: @christianposta
> >
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta


Re: Camel multicast and exception

2013-09-26 Thread Erwin Etchart
Thanks , i will try that.

Regards

Erwin


2013/9/26 Christian Posta 

> You can specify an error handler for the specific route which is where you
> specify redelivery semantics:
>
> http://camel.apache.org/error-handler.html
>
>
> On Thu, Sep 26, 2013 at 9:33 AM, Erwin Etchart  >wrote:
>
> > Thanks for your response Christian,
> >
> > Do you know if i try with "try catch" how can i do to define a
>  redelivery
> > police of this specific direct component?
> >
> >
> > Regards
> >
> > Erwin
> >
> >
> >
> >
> > 2013/9/26 Christian Posta 
> >
> > > Take a look at try-catch block. Or try adding exception handlers to
> each
> > > individual "direct" route?
> > >
> > >
> > > On Thu, Sep 26, 2013 at 8:55 AM, Erwin Etchart <
> erwin.etch...@gmail.com
> > > >wrote:
> > >
> > > > Based on this example of a camel route
> > > >
> > > >  > > > aggregationRepositoryRef="aggregator.container.2" completionSize="2"
> > > > completionTimeout="36">
> > > > 
> > > > aggregationKey
> > > > 
> > > > 
> > > >  > />
> > > >  > />
> > > >  > />
> > > > 
> > > >  
> > > >
> > > >
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  uri="bean:spring.remote?method=springRemotingTest(${body})"
> > >  />
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > uri="bean:spring.remote?method=springRemotingTest2(${body})"
> > > />
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > >
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > uri="bean:spring.remote?method=springRemotingTest3(${body})"
> > > />
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > I want to retry independent from each other if one fails. The
> behavior
> > > now
> > > > is if one fails the three routes will be retried. I tried to do a
> > custom
> > > > error hander but the behavior was the same.
> > > >
> > > > ¿Any idea?
> > > >
> > > > Best regards
> > > >
> > > > Erwin
> > > >
> > >
> > >
> > >
> > > --
> > > *Christian Posta*
> > > http://www.christianposta.com/blog
> > > twitter: @christianposta
> > >
> >
>
>
>
> --
> *Christian Posta*
> http://www.christianposta.com/blog
> twitter: @christianposta
>


Re: Camel multicast and exception

2015-03-09 Thread Claus Ibsen
Hi

You can turn this off on the error handler. It has many options to
turn this on | off.

You set LogStackTrace = false
http://camel.apache.org/redeliverypolicy.html

On Mon, Mar 9, 2015 at 10:18 AM, Desu, Kishore Kumar
 wrote:
> Hi,
>
> Below route is giving exception with stackTrace and I want to restrict it to 
> provide only a message instead of stackTrace.
> Please me to fix it.
> ---
> 
> 
> 
>
> 
> ${header.eventId}
> 
>
> 
> ${body}
> 
>
> 
> java.lang.Exception
> java.sql.SQLException
>  redeliveryDelay="3000"/>
> 
> Error on ${header.eventId}:${body}
> 
> 
> 
>
> 
> 
> 
> 
> ${properties:rest.uri}${header.eventId}
> 
>
> 
> GET
> 
>
> http://dummyhost"/>
>
> 
> insert into XX (ID, TYPE, SOURCE, 
> SUBMITTED_DT, STATUS, CONTROLS, PAYLOAD) values(SEQPW_SUBMISSIONS.NEXTVAL, 
> 'events', 'CM', sysdate, 'NOT_PROCESSED', TO_CLOB('${property.eventDesc}'), 
> utl_raw.cast_to_raw('${body}'))
> 
>
> 
> 
> 
> ${property.eventid}:${property.eventdesc}
> 
> 
> 
> 
> 
>
> Thanks,
> Kishore Kumar Desu.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/