Camel versus Spring Integration

2014-01-26 Thread davidrobert
We are building an application which reads from a database, transforms into XML, and then places messages onto a topic for an external system. For this use case, would there be any reasons to favour Camel over Spring Integration? Also, in general, what advantages, if any, does Camel have over

Re: Camel versus Spring Integration

2014-01-26 Thread Willem Jiang
Please check out the answer[1] in the stack overflow. [1]http://stackoverflow.com/questions/3034054/when-to-use-spring-integration-vs-camel -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English)

camel-cxf , return complex type object problem

2014-01-26 Thread nono
Dear all, I encounter a camel-cxf 's cxf:bean problem it seems , it works with return type as Pojo but failed with ListPojo I got exception at karaf like Below. Could anyone give some hints? Thanks in advance! WARNING: Interceptor for

cannot exchange mesasge body during a retryWhile()

2014-01-26 Thread Elvio Caruana (ecaruana)
Hi all, I've got a scenario where given an exception on a route, I want to retry the sub-route but with a modified body (String.class type). from(direct:foo) .onException(SomeException.class) .handled(true) .retryWhile(new

cannot modify exchange message body during a retryWhile()

2014-01-26 Thread Elvio Caruana (ecaruana)
Hi all, I've got a scenario where given an exception on a route, I want to retry the sub-route but with a modified body (String.class type). from(direct:foo) .onException(SomeException.class) .handled(true) .retryWhile(new

RE: Tracer per route without explicitly turning off tracing

2014-01-26 Thread Ravindra.Godbole
You can set the traceFilter for tracer which is nothing but defining predicate. Custom predicate can be defined as you want. It can be just one string or pattern of strings[destinations] you want to trace. This is the solution I can think of in the current context. Tracer tracer = new

RE: Convert a Spring xml route string in a RouteDefinition

2014-01-26 Thread Ravindra.Godbole
You might want to have a look at the following sample. It does have namespace defined for root element. You can build this string as you like with more child routes. CamelContext context = new DefaultCamelContext(); context.setTracing(true);

Re: Queries on jetty server

2014-01-26 Thread bijoy
I understood that using servlet component we can deploy services onto any servlet container. But I want to use camel to handle tomcat instance just like it does for jetty using camel:jetty component. Using camel I want to start/stop tomcat and also want to get logs/statuses from tomcat. I guess

Re: Queries on jetty server

2014-01-26 Thread Willem Jiang
Current we don’t have camel-tomcat component, if you want to implement it yourself, you can take a look at the code of camel-jetty component. Basically you just need to replace the start stop jetty server code with tomcat. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: Queries on jetty server

2014-01-26 Thread Claus Ibsen
On Mon, Jan 27, 2014 at 6:14 AM, bijoy bijoy.chaudh...@gmail.com wrote: I understood that using servlet component we can deploy services onto any servlet container. But I want to use camel to handle tomcat instance just like it does for jetty using camel:jetty component. Using camel I want to

Re: cannot exchange mesasge body during a retryWhile()

2014-01-26 Thread Claus Ibsen
Hi retryWhile is only for returning true|false, not for modifying. You should use onRedelivery to do any custom modifications before a redelivery attempt. On Sun, Jan 26, 2014 at 7:40 PM, Elvio Caruana (ecaruana) ecaru...@cisco.com wrote: Hi all, I've got a scenario where given an exception