Re: REST DSL - including documents

2015-01-23 Thread scottdawson
Hello, Here's the JIRA ticket Claus referred to. It appears to be "stalled". In the meantime you might want to use the code that the new feature is based on, written by Tracy Snell and documented here

Re: LinkedHashMap vs HashMap for Camel redis hmset operation

2014-12-12 Thread scottdawson
Gordon, LinkedHashMap is a class that implements the java.util.Map interface, so, you are getting a Map back. Since Map is an interface you will always get an instance of some class that implements Map so it makes sense that the unmarshal operation is returning a LinkedHashMap. Regards, Scott -

Re: Camel - Array

2014-12-04 Thread scottdawson
If you want to do some processing on each element in the array, you can use the Splitter pattern/component: http://camel.apache.org/splitter.html Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5

Re: rest client - post a json content to and http enpoint

2014-11-25 Thread scottdawson
Ali, We use the http4 Camel component for POSTing JSON to a REST service, for example: Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600p5759602.html Sent from the Camel - Users mailing list archive

Re: .toUpperCase() doesn't work in the simple expression below.

2014-11-17 Thread scottdawson
I use toUpperCase within a simple expression: ${in.header.flutype.toString().toUpperCase().charAt(0)} Try calling toString before toUpperCase. Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/toUpperCase-doesn-t-work-in-the-simple-expression-below-tp5759065p57

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread scottdawson
You may be able to use the Camel Groovy component. We use Groovy like this to compute past dates: new Date().minus(7).format('-MM-dd') Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/Expression-Language-and-date-now-minus-plus-N-days-tp5758210p5758230.html

Re: Corrupt pdf from classpath

2014-09-26 Thread scottdawson
Hi Claus, Tracy Snell wrote the original code and it's his website that I provided the link to in my earlier post. I will try to contact Tracy and see if he's willing to donate his code. Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/Corrupt-pdf-from-classpat

Re: Corrupt pdf from classpath

2014-09-25 Thread scottdawson
Hello, I wrote a component based on the code shown here: http://code.notsoclever.cc/writing-camel-component-camel-static-resource/ to deliver static files, mostly PNG files in my case but I see no reason why it won't wor

Daily timer to fire at a specific time

2014-08-26 Thread scottdawson
Hello, What is the proper way to configure a timer that fires every day at 10 AM? I have this, which works, but it seems artificial to have to specify a date and sometimes the service seems to get confused on redeploy and fire repeatedly if I forget to update the date. http://camel.apache.org/s

Re: Return Value from Python Script Not In Message Body

2014-06-30 Thread scottdawson
As an alternative to the language component, you can use the exec component (or the ssh component if the script is on a remote machine): Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753052.ht

Re: Sending payload from http to jms...Camel.

2014-04-28 Thread scottdawson
I guess you're using POST or PUT to send the message to the HTTP endpoint, right? I've used this route successfully within ServiceMix: http://0.0.0.0:8182/async"/> JMSCorrelationID: ${header.JMSCorrelationID} text/plain

Re: Jetty endpoint as ActiveMQ consumer

2014-02-15 Thread scottdawson
Thanks Willem. Great insight. For anyone else reading this, this is how you can retrieve from the JMS queue to provide the response for the HTTP GET: http://0.0.0.0:8182/dequeue"/> Best regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/Jetty

Jetty endpoint as ActiveMQ consumer

2014-02-13 Thread scottdawson
Hello, I want to consume messages from an ActiveMQ queue using HTTP GET via a Jetty endpoint. This will deploy: http://0.0.0.0:8182/dequeue"/> but the second "from" doesn't wait on the first "from", in other words, messages are consumed from the queue

Re: How to get response of one camel route inside other camel route

2014-02-12 Thread scottdawson
Or you may be able to use the direct component if both routes are in the same camelContext. Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/How-to-get-response-of-one-camel-route-inside-other-camel-route-tp5747165p57471

RE: CxfHeaderFilterStrategy doesn't drop SOAP headers

2014-02-06 Thread scottdawson
Oli, What happens if you add headerFilterStrategy=#dropAllMessageHeadersStrategy to your 'to' route, as shown on this page: https://access.redhat.com/site/documentation/en-US/JBoss_Fuse/6.0/html/Web_Services_and_Routing_with_Camel_CXF/files/Filter-Basic.html

Configure Jetty to return Date header

2014-01-24 Thread scottdawson
How can I configure a Jetty endpoint to return the HTTP Date header in response messages? The endpoint is deployed in ServiceMix 5.x and configured like this: http://camel.apache.org/schema/blueprint";> http://0.0.0.0:8183/porttest"/> ... I've added the line shown below to the Servi

Re: Camel-JPA for single select statements

2013-11-11 Thread scottdawson
Christian: Yes, we have experimented with camel-jdbc and camel-sql, however, we have a Hibernate layer that we would like to leverage which is why we are trying to use camel-jpa. Claus: It sounds like you are suggesting that maybe camel-jpa is not the right tool for the job. Thanks to both of you

Camel-JPA for single select statements

2013-11-11 Thread scottdawson
I would like to use the Camel JPA component to perform single select statements, in other words, I would like to use the component as a consumer without the default polling behavior. I want to receive an invocation over HTTP (via the Jetty component perhaps) which will cause one select statement to