Re: Sending message to JMS endpoint is slow every x messages

2015-09-28 Thread iasonp
I found the solution for this problem by using a PooledConnectionFactory. The following code solved the problem: final ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(jmsBrokerUrl); factory.setUseAsyncSend(true); final PooledConnectionFactory pooledConnectionFactory = new PooledC

Re: Rest DSL Media Type

2015-09-28 Thread Claus Ibsen
I logged a ticket https://issues.apache.org/jira/browse/CAMEL-8528 And as Sergey also says we can with all the information from the rest-dsl uses that as fallback to set the CT header, so Gregors example also would work. This makes rest-dsl simpler to use, and for use-cases where you just do a get

Re: curl

2015-09-28 Thread Suganya
Hi, Thanks for your reply. The GET command is working using the exec component. But I am stuck with the POST or the PUT command. The input data is in JSON format. But I am unable to pass it. Where am I going wrong? below is the command. -- View this message in context: http://camel.46542

SMX 6, sftp and 2048 kex

2015-09-28 Thread Jarmo Sorvari
Hi Our admin has limited ssh key exchange algorithms to min 2048 length. I installed SMX 6.0.0 to Ubuntu 14.04, along with Oracle java 8. Now sftp endpoints fail to the secured ssh server from my workstation. However, camel sftp endpoints work from an RHEL server to the same secured server.

RE: CamelAwsSqsMessageAttributes header not appearing on messages in AWS SQS Queue - Camel 2.15.2

2015-09-28 Thread scurtis-engineer
Thanks for the response, Matt. I don't believe that's my problem because after the processor is done, I have a log statement in the Blueprint XML that shows the header has been properly set. The problem seems to be that somewhere in the processing that happens to the message in sending it to the qu

RE: CamelAwsSqsMessageAttributes header not appearing on messages in AWS SQS Queue - Camel 2.15.2

2015-09-28 Thread Cleocleo
Have you tried taking a look at the SQS component source for answers? https://github.com/apache/camel/tree/master/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs I've never used the SQS component before, but it looks like the SQS producer only sets SQS setMessageAttributes i

Stop/suspend route in process(); restart via CronScheduledRoutePolicy

2015-09-28 Thread markmueller
I'm trying to set up a route which can be suspended or stopped within the process method, but be started again by the cron scheduler when it comes time to run again. I'm successful in suspending or stopping the route, but when I suspend the route and use "routeResumeTime", I get: "org.apache.cam

Asynchronous write to a file

2015-09-28 Thread Asaf Mesika
Hi, Just wanted to double check - currently there's no camel component which is able to write a stream to a file async. I saw that the File component only supports consuming files async ? Thanks! Asaf

Re: curl

2015-09-28 Thread Asaf Mesika
I think you didn't escape the quotation marks inside the -d value which is the JSON. Try or better - store this json as is in a file "/tmp/1.json", and use --data-binary @/tmp/1.json to send it in curl. On Mon, Sep 28, 2015 at 1:28 PM, Suganya wrote: > Hi, > > Thanks for your reply. > > The

File component to only process files if modified with noop=true

2015-09-28 Thread hayden74
Hi guys, The issue I am having at the moment seems to be reported back in 2010 as per this link . Just wondering if this has been resolved or considered as a bug? My use case is basically:

RE: CamelAwsSqsMessageAttributes header not appearing on messages in AWS SQS Queue - Camel 2.15.2

2015-09-28 Thread scurtis-engineer
Cleocleo, thank you so much for de-mystifying this one for me!! I had looked at some of that code before, but missed, or misunderstood, the filtering pattern part. Once I added my custom header, it works as I would expect and I can see messages in the queue with the Message Attribute Value I define

Re: File component to only process files if modified with noop=true

2015-09-28 Thread Claus Ibsen
Hi See about the idempotentKey option to add the file timestamp or size etc as part of the key http://camel.apache.org/file2 On Tue, Sep 29, 2015 at 6:33 AM, hayden74 wrote: > Hi guys, > The issue I am having at the moment seems to be reported back in 2010 > as per this link >

Re: Asynchronous write to a file

2015-09-28 Thread Claus Ibsen
There is the stream component http://camel.apache.org/stream the trick is to close the stream when done, which you may need some kind of way of doing. On Mon, Sep 28, 2015 at 9:58 PM, Asaf Mesika wrote: > Hi, > > Just wanted to double check - currently there's no camel component which is > able