Re: How to pass multiple custom objects to processor

2014-07-28 Thread Arnaud Deprez
If I get you correctly, I think the best pattern that matches your need is : 1. split your messages by headers and bodies (by using XPath or the tokenizer with regex expression) 2. then aggregate it in the object you want (a collection or whatever you want) 3. then call a processor

Re: Handle SOAP fault message

2014-07-29 Thread Arnaud Deprez
Hi Jaishankar, Actually, Camel will not throw a SOAPFaultException, but a CamelRuntimeException that wraps a SOAPFaultException. Instead of handling exception by hand, Camel can do it for you in 3 different ways depending on what you'd like to do : 1. http://camel.apache.org/dead-letter-chann

Re: Handle SOAP fault message

2014-07-29 Thread Arnaud Deprez
Hi, Can you show us how you have configured your endpoint "TransactionBegin" and also the method signature of "begin". Normally, by using CXF/JAXWS, the SOAPFault message should mapped to an Exception. and in your code you must handle this exception. If it's not the case, CXF won't be able to map

Re: How to pass multiple custom objects to processor

2014-07-29 Thread Arnaud Deprez
Hi, As I don't know your data structure, it's difficult for me to give you a specific (or "best") way. But you have 2 possibilities (see http://camel.apache.org/aggregator.html) : 1. Use a custom aggregation strategy in java code 2. Use the option "grouped exchanges" or use a "custom aggreg

Re: Why RuntimeCamelException is thrown whenever some IOException occur for write/read

2014-07-29 Thread Arnaud Deprez
Hi, Actually, camel will wrap any of your exception or other exception in a RuntimeCamelException. You can handle exceptions (including wrapped exception) in many ways in camel (http://camel.apache.org/error-handling-in-camel.html) 2014-07-29 6:03 GMT+02:00 Satyam Singh : > Hello, > > > I am u

Re: Camel-jdbc : can't get useHeadersAsParameters working properly

2014-07-30 Thread Arnaud Deprez
Hi, Can you tell us which camel version do you use and show us your route please ? 2014-07-30 10:52 GMT+02:00 A577127 : > Hi, > > I'm trying to send a mysql request thanks to camel-jdbc. However, one of my > fields is a byteArray, so I would like to use named parameters to bind some > value to

Re: How to stop routing with onException ?

2014-08-04 Thread Arnaud Deprez
Hi Frankiboy, It's because you use multicast which consist to send exactly the same exchange in your 3 channels. So these 3 messages are independents. http://camel.apache.org/multicast.html If you remove the multicast, it will use the pipeline pattern, meaning, it will send the message to the fir

JMS Batch consumption

2014-08-08 Thread Arnaud Deprez
ve this problem. According to me, it seems to be a design issue but I'm not sure and I'd like your point of view about this ? If you have a workaround or another solution that can suit to me, please share ! :-) Arnaud Deprez

Re: JMS Batch consumption

2014-08-09 Thread Arnaud Deprez
(amq) and insert them into a > database ( one by one ) , > and if insertion fails , then the message be acknowledged ( removed > from queue) and stored into a file > > what is the best pattern to use ? > > > > > > > > > On Fri, Aug 8, 2014 at 11:37 AM,

Problem with feature camel-spring 2.17.0

2016-04-01 Thread Arnaud Deprez
nice to solve it. A new bundle might be required (camel-tx-spring or something like) to avoid collision with spring-dm as camel-spring relies on it. What do you think ? Regards -- Arnaud Deprez

Re: Problem with feature camel-spring 2.17.0

2016-04-02 Thread Arnaud Deprez
Alright, I didn't see that yesterday. Thx Claus :-) On Sat, Apr 2, 2016 at 1:04 PM Claus Ibsen wrote: > There is a ticket about moving spring-dm out > https://issues.apache.org/jira/browse/CAMEL-9521 > > > > On Fri, Apr 1, 2016 at 10:53 PM, Arnaud Deprez > wrote:

Question: register jackson module with auto binding in rest dsl

2016-04-04 Thread Arnaud Deprez
Hi camel riders, I've one question (which is by the way in the title): - Is there a way to register jackson modules (ie jdk8 & jsr310) in the RestBinding.auto configuration for services exposed with the rest-dsl ? Thanks in advance and keep riding ! Rgds, -- Arnaud Deprez

Re: Question: register jackson module with auto binding in rest dsl

2016-04-04 Thread Arnaud Deprez
ose custom modules > http://camel.apache.org/json.html > > And if using the rest-dsl you can configure that using the > dataFormatProperty style. > > Or you can refer to existing modules in the registry using the id's > with the moduleRefs option. > > On Mon, Apr 4, 201

Re: routing from rest to soap

2016-05-09 Thread Arnaud Deprez
il.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) > at > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) > at java.lang.Thread.run(Thread.java:745) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/routing-from-rest-to-soap-tp5782352.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Arnaud Deprez Software Engineer Phone: +32 497 23 30 44 Linked'In: https://www.linkedin.com/in/deprezarnaud Github: https://github.com/arnaud-deprez

Re: Aggregation Stratergy Apache camel

2016-05-09 Thread Arnaud Deprez
://camel.465427.n5.nabble.com/Aggregation-Stratergy-Apache-camel-tp5782341.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Arnaud Deprez Software Engineer Phone: +32 497 23 30 44 Linked'In: https://www.linkedin.com/in/deprezarnaud Github: https://github.com/arnaud-deprez

camel jpa blueprint unit test

2015-02-15 Thread Arnaud Deprez
Hi folks, Is there any examples of how to run JUnit tests with camel jpa and blueprint ? I know that we can use Pax Exam with the Karaf Container but it works in another process and I can't run it in debug mode easily. My goal is to create a unit test with the handsome CamelBlueprintTestSupport

Re: camel jpa blueprint unit test

2015-02-16 Thread Arnaud Deprez
t's the only way right now. > > regards, Achim > > [1] - > > http://notizblog.nierbeck.de/2013/08/testing-camel-jpa-routes-with-pax-exam-and-karaf/ > [2] - https://github.com/ANierbeck/Camel-Pax-Exam-Demo > > 2015-02-15 16:11 GMT+01:00 Arnaud Deprez : > > > Hi f

camel-swagger in karaf

2015-07-16 Thread Arnaud Deprez
Hi guys, I don't know if this mail is for camel folks or karaf folks. I'm using camel 2.15.2 with its REST DSL and camel-swagger in an OSGi environment (I tried both karaf 2.4.3 and karaf 4). I'm using the servlet component by exposing it as OSGi services : - CamelHttpTransportServlet for my

Re: camel-swagger in karaf

2015-07-16 Thread Arnaud Deprez
le back there was a thread about swagger on karaf. Can you find > > that I think it has some pointers to get it working. > > > > > > > > On Thu, Jul 16, 2015 at 11:48 AM, Arnaud Deprez > wrote: > >> Hi guys, > >> > >> I don't know if this

Re: camel-swagger in karaf

2015-07-16 Thread Arnaud Deprez
os? > > On Thu, Jul 16, 2015 at 1:10 PM, Arnaud Deprez > wrote: > > Hi, > > > > Thanks for your quick answer. > > > > I've tried to add either a file org.apache.camel.cfg and > > jmx.acl.org.apache.camel.cfg that has * = * and I still have the same

Re: camel-swagger in karaf

2015-07-20 Thread Arnaud Deprez
Hi again, I just push my example here which works fine with spring-boot but still can't see the model in Karaf. https://github.com/arnaud-deprez/camel-examples/tree/master/rest There are also the features I use. If someone find what's wrong, I'd be verry happy ! :-) On Thu, Jul 1

Re: camel-swagger in karaf

2015-07-21 Thread Arnaud Deprez
to solve (assuming my > guess is correct), you could possibly use a fragment bundle on either the > swagger or jackson bundles (not sure which needs the classes), or consider > some form of embed-dependency (which is not really the correct solution to > an osgi problem) > > Sorr

Re: camel-swagger in karaf

2015-07-21 Thread Arnaud Deprez
I just raised an issue for this : https://issues.apache.org/jira/browse/CAMEL-8993 On Tue, Jul 21, 2015 at 5:24 PM Arnaud Deprez wrote: > Thanks Ed, > Until your message I though I was the only one who is trying this. > > I also think it's a classpath issue because as I said, I

Camel Rest DSL context-path not taken into account with netty4-http

2015-07-31 Thread Arnaud Deprez
Hi, Everything is in the subject. I've some Rest DSL routes with the following rest configuration : I used the shared http server as explained in the documentation and it works fine except that the contextPath property is not taken into account (my web s

Re: Camel Rest DSL context-path not taken into account with netty4-http

2015-07-31 Thread Arnaud Deprez
Ah ok, Thx for your feedback ! On Fri, Jul 31, 2015 at 12:39 PM Claus Ibsen wrote: > If I recall then the context-path in is only for > documentation purposes and JMX API, > > you need still need to use that path as well in your rest-dsl > > On Fri, Jul 31, 2015 at 11:49

Re: https REST DSL servicemix CamelHttpTransportServlet

2015-09-29 Thread Arnaud Deprez
What do you mean by "secure" ? Configure ssl, Role based spring like application or Both ? On Tue, Sep 29, 2015 at 4:16 PM sekaijin wrote: > Hi > Howto configure servicemix to secure Rest service using REST DSL and > CamelHttpTransportServlet > > > Thank > JYT > > > > -- > View this message in c

Unstable test with camel-test-blueprint

2015-10-02 Thread Arnaud Deprez
Hi folks, I'm currently testing routes with camel-test-blueprint 2.15.2 and from time to time my tests fails (it's like 1 faillure for 1 passed). When it occurs, I got the following message : 16:19:10.556 [Blueprint Extender: 1] INFO o.a.a.b.c.BlueprintContainerImpl - Bundle CustomerRestServiceR

Re: https REST DSL servicemix CamelHttpTransportServlet

2015-10-04 Thread Arnaud Deprez
As the servlet use jetty by default you can configure it but I didn't recommend it. It's better and easier and more scalable to use a proxy like haproxy, nginx or apache and configure it with ssl endpoints in front of your web service. These tools are especially build for this use case Le Dim 4 Oc

Re: Unstable test with camel-test-blueprint

2015-10-09 Thread Arnaud Deprez
No I got the same behaviour with camel 2.16-SNAPSHOT :-( On Fri, Oct 9, 2015 at 4:21 PM Grzegorz Grzybek wrote: > Hi > > for camel-2.15.2 you have > "com.googlecode.pojosr:de.kalpatec.pojosr.framework:jar:0.2.1:test" > dependency - which isn't stable. > for camel-2.16 it looks fine - > "org.apac

Re: Unstable test with camel-test-blueprint

2015-10-12 Thread Arnaud Deprez
) > > regards > Grzegorz > > 2015-10-09 16:43 GMT+02:00 Arnaud Deprez : > > No I got the same behaviour with camel 2.16-SNAPSHOT :-( > > > > On Fri, Oct 9, 2015 at 4:21 PM Grzegorz Grzybek > > wrote: > > > >> Hi > >> > >> for camel-2.

Re: Unstable test with camel-test-blueprint

2015-10-12 Thread Arnaud Deprez
> > 2015-10-12 9:26 GMT+02:00 Arnaud Deprez : > > Hi, > > > > I've updated my project to the latest camel 2.16.0 and the issue seems to > > be resolved. > > Keep in touch in case the problem occurs again. > > > > Thx for you support. > > &g

Camel 2.16.0: ProducerTemplate has not been started

2015-10-13 Thread Arnaud Deprez
Hi, I upgraded my project to the last 2.16.0 camel release and I get this exception in karaf 4.0.2 while it's working in my unit test. So basically, I've a bean with a private field declared as : @Produce private ProducerTemplate template; When I try to request and endpoint with my ProducerTempl

Re: Camel 2.16.0: ProducerTemplate has not been started

2015-10-13 Thread Arnaud Deprez
The bug seems to be related with karaf and not with camel as it works in karaf 2.4.3 and karaf 3.0.5. On Tue, Oct 13, 2015 at 1:59 PM Arnaud Deprez wrote: > Hi, > > I upgraded my project to the last 2.16.0 camel release and I get this > exception in karaf 4.0.2 while it's w

Re: Camel Deployment - Best Practice

2015-10-14 Thread Arnaud Deprez
Hi, If you need/like OSGi, I would go for karaf but if you don't, I'd go for spring-boot as you can benefit from the whole benefit of spring without having to deal with specific container configuration. Rgds, On Wed, Oct 14, 2015 at 8:13 PM contactreji wrote: > Hello guys > > We deliver integr