Re: Routing based on exchange header content-type

2014-08-19 Thread Claus Ibsen
There is a missing } in your simple expression, you need that to end the left hand side ${in.headers[‘Content-Type’]} == ‘application/json’ On Tue, Aug 19, 2014 at 8:50 PM, harald wrote: > Hello, > > I just wanted to extend my routing > > > > > > > by a content routing based on the HTT

Re: unable to weave in mock endpoint due to transaction policy

2014-08-19 Thread Claus Ibsen
Hi I think this is fixed in the next release. On Wed, Aug 20, 2014 at 3:00 AM, Minh Tran wrote: > Hello > > I seem to be getting a similar problem to this but I am using camel 2.13.2 > http://camel.465427.n5.nabble.com/missing-output-on-route-definition-td5739784.html > > My route is >

unable to weave in mock endpoint due to transaction policy

2014-08-19 Thread Minh Tran
Hello I seem to be getting a similar problem to this but I am using camel 2.13.2 http://camel.465427.n5.nabble.com/missing-output-on-route-definition-td5739784.html My route is

Non-deterministic Camel context startup failure

2014-08-19 Thread Alexander Krauss
Dear list, I am getting weird non-deterministic behaviour when constructing a simple Camel context. The real thing is in a complex enterprise application, but I managed to strip it down to a really simple and self-contained test case (self-contained maven project at https://github.com/alexkrauss/c

Routing based on exchange header content-type

2014-08-19 Thread harald
Hello, I just wanted to extend my routing by a content routing based on the HTTP header ‘Content-Type’ like ${in.headers[‘Content-Type’] == ‘application/json’ ${in.headers[‘Content-Type’] == ‘application/xml’ Usi

CXF producer endpoint - URL symbol clash

2014-08-19 Thread contactreji
Hey Guys I have a very peculiar case here. I have to send data to a web service available at SAP PI middleware from Fuse ESB. The url at which SAP PI has exposed their service looks like http://otpidd01:5/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_D_EAM_Global&receiverParty=

Re: Camel Mybatis 2.13.1 multiple statementTypes in a batch or Transaction?

2014-08-19 Thread sandp
Figured it out, the solution is straightforward see link for Camel MyBatis and MyBatis-Spring . Convert the Spring config to Java and you have it. Below is what I did and it worked fine. Add *mybati

Re: AHC module not passing the request body

2014-08-19 Thread Claus Ibsen
Hi Sounds a bit like this http://camel.apache.org/why-is-my-message-body-empty.html On Tue, Aug 19, 2014 at 6:11 PM, Jaume Sancho wrote: > Hi, > > I am in the process of creating a Camel-based proxy that takes in requests > on a Tomcat Servlet, does some internal processing, and ultimately retur

Re: java.lang.ClassCastException: Not instanceof org.apache.camel.TypeConverter value: org.apache.camel.converter.jaxb.FallbackTypeConverter

2014-08-19 Thread jcuk
Yes, its jars in a war file, and no shared libraries. I agree it looks very like the interface and the object are coming from two different class loaders - I'll see if I can confirm that this is the case -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-ClassCastExce

AHC module not passing the request body

2014-08-19 Thread Jaume Sancho
Hi, I am in the process of creating a Camel-based proxy that takes in requests on a Tomcat Servlet, does some internal processing, and ultimately returns the responses that you would expect when accessing the targeted server itself. In its simplest implementation this works just fine for GET and

Re: Camel Mybatis 2.13.1 multiple statementTypes in a batch or Transaction?

2014-08-19 Thread sandp
Hi, Out of curiosity, I ran few DB tests using Transactional Client with SqlComponent, and all worked as expected ( the same tests failed with MyBatis as I mentioned in my previous posts in the chain). Has anyone faced the same issue? -- View this message in context: http://camel.465427

RE: sftp hang-ups

2014-08-19 Thread prajod.vettiyattil
Hi Petr, Missed this email last week. 1. The thread dump should be captured when the issue happens. From the thread dump you sent looks like everything is fine. Also we need to get the state of all threads, not just one. Thread dumps are long. So redirect your dump to a file and search for:"

Using camel-http4 component with self-signed certificates

2014-08-19 Thread Jaume Sancho
Hi, This is basically a re-iteration of the question asked here http://camel.465427.n5.nabble.com/Camel-2-13-1-HTTP4-HttpClientConfigurer-for-self-signed-certificates-td5755062.html Basically, I would like to use the http4 against servers with self-signed certificates. There are a few examples t

Re: java.lang.ClassCastException: Not instanceof org.apache.camel.TypeConverter value: org.apache.camel.converter.jaxb.FallbackTypeConverter

2014-08-19 Thread Claus Ibsen
Hi How do you deploy your Camel application? Do you put all the JARs in a WAR? Or do you have some shared JARs in the Tomcat shared lib directory or something? It does sound like a classpath issue due the latter. If all JARs are in the WAR then it ought to use same classloader and just work. On

java.lang.ClassCastException: Not instanceof org.apache.camel.TypeConverter value: org.apache.camel.converter.jaxb.FallbackTypeConverter

2014-08-19 Thread jcuk
Hello I'm currently experiencing a problem initializing the TypeConverters in Camel in a Spring WebApp. As soon as the first exchange is created and the type converters are loaded (or type converters are loaded explicitly with camleContext.getTypeConverterRegistry() ) then I get the following exc

Disruptor - ringbuffer full. How to measure?

2014-08-19 Thread PJ Walstroem
hello, we recently replaced seda with disruptor and are currently learning how it works. Yesterday we had some problems in the system, and the disruptor threw exceptions saying java.lang.IllegalStateException: Disruptors ringbuffer was full at org.apache.camel.component.disruptor.Disruptor