Camel cxfrs proxy response

2015-12-06 Thread hoomanb
Hi, I have exposed a cxfrs endpoint as my proxy rest service, once getting the request I'm calling two soap web services and getting the respond back from those service, in this process I'm using camel aggregator to aggregate the response results coming back from the soap calls, now up to here ev

Re: Documentation on writing endpoints is lacking...

2015-12-06 Thread Taariq Levack
PS if all of the mysteries weren't cleared up by the project generation feel free to ask. Also see this page about the architecture which explains the various parts quite well. http://camel.apache.org/architecture.html Cheers > On 06 Dec 2015, at 21:24, Taariq Levack wrote: > > Hi Jimi, > We

Re: Documentation on writing endpoints is lacking...

2015-12-06 Thread Taariq Levack
Hi Jimi, We really love contributions so please feel free to make notes and edit the wiki. I usually create components using maven as shown here; http://camel.apache.org/creating-a-new-camel-component.html Change the version and run, you'll have a working project in seconds. Have fun. > On 06 D

Documentation on writing endpoints is lacking...

2015-12-06 Thread jimi.hullegard
I'm evaluating Camel for a coming project, and so far it looks pretty impressive. But I would like to try and write my own endpoint implementation, just to test it out, and the documentation on the website is a bit lacking, to say the least. At the minimum, one would think one could find a compl

Camel-cache usaed in Enricher Route

2015-12-06 Thread Michele
Hi everyone, this is my scenario: 1. Receiving a file from FTP Component 2. Set it in header a correct absolute xml file path depending on file name to parse a file 3. Enrich message with java object marshalled on xml only if the configuration is not present in cache 3. Processing and store in MQ

Re: URL space handling with Camel Rest and Jetty APIs

2015-12-06 Thread Joakim Bjørnstad
Hello, You can't. It's part of the HTTP specification to escape non US-ASCII characters with % followed by two hex digits representing the octet code. You will have to manually replace the %20 with space. As far as I know, the DSL does not have options to do this for you. But IMO, change your AP

Re: Exception handling with Apache Camel

2015-12-06 Thread Joakim Bjørnstad
Hello, Set up your own logger, for example with slf4j and logback loggers/appenders. private static final Logger LOGGER = LoggerFactory.getLogger(MyRoute.class); onException(Exception.class) .handled(true) .setBody(constant("Parsing Error, please check your input")) .log(LoggingLevel.ERROR

URL space handling with Camel Rest and Jetty APIs

2015-12-06 Thread Vero Kato
hi, in our Camel REST/Jetty service we can have spaces, for example: localhost:8080/rest/ourSerivce/Curren Time/ when we get "/Current Time/" string, it has %20 weird URL characters and we want to have spaces instead. we get it like this rest("/rest/ourSerivce/") .produces("app

Exception handling with Apache Camel

2015-12-06 Thread Vero Kato
hi, I use Camel Rest and currently when I need to suppress exception in my code and show on a screen nice message, I do like this: onException(Exception.class).handled(true).setBody(constant("Parsing Error, please check your input")).log("error sent back to client"); The only problem is that "err

extracting HTTP query key values with Camel Rest and Jetty

2015-12-06 Thread Vero Kato
hi, I'm using Apache Camel with Camel REST and Camel Jetty. I don't have any problems when we expose our Rest API like this: localhost:8080/rest/OurService/Value1/Value2 but I can't understand how I can extract data from this URL localhost:8080/rest/OurService?key1=Value1&ke2=Value2 i.e. I need