How to pass a single space as a query parameter in rest dsl?

2016-04-29 Thread Matt Sicker
Suppose I have a simple REST DSL: rest().get("/test").route().setBody(header("foo")); Then I do something like: curl http://localhost:8080/test?foo=+ I get an empty response because ${headers.foo} is null for some reason. This isn't expected behavior, especially because the query parameters are

camel-schematron feature in servixemix 6.1.1: “Failed to compile stylesheet”.

2016-04-29 Thread didiosky
Hi, I’m testing schematron endpoints in a fresh servicemix 6.1.1 (on windows) and it fails with a “Failed to compile stylesheet” error. The camel-schematron and camel-saxon features are installed, but I get this error anytime that I deploy a camel route with a schematron endpoint. The schematron f

Re: JSonPath expression works in online validator but not within Camel route

2016-04-29 Thread catshout
A simpler expression $..PARTNER[0].APPLICATION on same content works, so far the body seems to be ok .. -- View this message in context: http://camel.465427.n5.nabble.com/JSonPath-expression-works-in-online-validator-but-not-within-Camel-route-tp5781987p5781993.html Sent from the Camel - User

Re: How to implement AsyncCallback for AsyncProcessor?

2016-04-29 Thread Claus Ibsen
On Wed, Apr 27, 2016 at 10:05 PM, Sven Bauhan wrote: > Hi, > > I found the explanation for an AsyncProcessor: > http://camel.apache.org/asynchronous-processing.html > > But I do not understand how to implement the corresponding AsyncCallback. > I did not find any example, how this can be done. > >

Re: JSonPath expression works in online validator but not within Camel route

2016-04-29 Thread Claus Ibsen
Maybe you need to enable stream caching, if the route input is from a streaming source http://camel.apache.org/why-is-my-message-body-empty.html On Fri, Apr 29, 2016 at 7:51 PM, catshout wrote: > mailing list seems to swallow the raw parts .. again .. > > Dear community, > > I've following JSON

Re: Camel SMPP receive Deliver_sm for sms, but not Deliver_sm for SMSC DeliveryReceipt

2016-04-29 Thread Tee
It seems I was using an older version of Camel. I bump the version up to 2.17.0 and everything is working as expected now. -T -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SMPP-receive-Deliver-sm-for-sms-but-not-Deliver-sm-for-SMSC-DeliveryReceipt-tp5781951p5781990.h

Re: JSonPath expression works in online validator but not within Camel route

2016-04-29 Thread catshout
mailing list seems to swallow the raw parts .. again .. Dear community, I've following JSON body { "PARTNER": [{ "APPLICATION": "Filiale", "ADAPTER": "SAPEIB", "QUEUE": [], "PROJECT_ID": "225", "PROJECT_NAME"

Re: JSonPath expression works in online validator but not within Camel route

2016-04-29 Thread Wilson MacGyver
nothing came through as far as I can tell in your email for any of the example output On Fri, Apr 29, 2016 at 12:18 PM, catshout wrote: > Dear community, > > I've following JSON body > > > > the expression > > > > gives > > > > in an online JSonPath validator but an empty string in Camel. Any id

JSonPath expression works in online validator but not within Camel route

2016-04-29 Thread catshout
Dear community, I've following JSON body the expression gives in an online JSonPath validator but an empty string in Camel. Any ideas? Best - Gerald -- View this message in context: http://camel.465427.n5.nabble.com/JSonPath-expression-works-in-online-validator-but-not-within-Camel-r

Camel SoapFault marshalling classcast exception

2016-04-29 Thread Mac
Hi, I am using the camel-soap project, and working on some exception handling. I have a SoapFault response which is below. When camel processes the response, I receive a classcast exception on Line 195 of the Soap11DataFormatAdapter class ie I get the following error at line: JAXBElement detai

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-29 Thread Brad Johnson
I doubt if you'll see any issues with either approach. It is more a matter of preference, taste and what works well for you. On Fri, Apr 29, 2016 at 9:00 AM, Vanshul.Chawla wrote: > We are using XML DSL and xslt for transformation. > We don't see any issue so far for any of our applications. >

RE: Blueprint(Spring) DSL vs JAVA DSL

2016-04-29 Thread Vanshul . Chawla
We are using XML DSL and xslt for transformation. We don't see any issue so far for any of our applications. -Original Message- From: NikheelRanjan [mailto:nikheel.ran...@gmail.com] Sent: Friday, April 29, 2016 3:05 AM To: users@camel.apache.org Subject: Re: Blueprint(Spring) DSL vs JAVA

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-29 Thread Brad Johnson
I actually avoid the Camel Processors as I find them unnecessary and they couple your Java to the Camel API. I'll use endpoint injection into a wrapper class and then use the methods on that wrapper class to make calls to the routes. Camel will automatically select the right method on a bean to ca

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-29 Thread Quinn Stevenson
The one case where I think you need to use Java RouteBuilders instead of just processors is the case of a “route template” - the same flow, but different endpoints, beans etc wired into the route. A simple example would be a route that subscribes to a JMS queue and publishes to another queue, c

Re: warning while calling Bean ref in camel route

2016-04-29 Thread ravi narayanan
Hi, Still iam getting warning when i use bean ref warn message 10:48:07,147 WARN [org.apache.camel.util.ObjectHelper] (http-/127.0.0.1:8080-11) Cannot find class: A1_Sync_Con_RQRequestReceived java method: public void logAuditMessage(BihMessage body,String message) { String Header = BihMes

Re: Blueprint(Spring) DSL vs JAVA DSL

2016-04-29 Thread NikheelRanjan
I also have good amount of experience in IT and I am using camel for more than 4 years, I also recommend xml and blueprint as the standard.As far as complexity is concerned,Routes placed in JAVA DSL will not help rather use of camel processors/beans will help in between to handle the complexity in

Camel SMPP receive Deliver_sm for sms, but not Deliver_sm for SMSC DeliveryReceipt

2016-04-29 Thread Tee
Hello, I'm learning to use Camel SMPP component as a way to send/receive SMS to SMSC. I'm using Selenium SMPP Sim with the following routes: context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:start").to("smpp://smppcli