Re: AWS + CAMEL + DynamoDB - Please Help

2014-03-10 Thread Willem Jiang
Hi Chris, Please share us the solution that you find with the AWS DynamoDB API. I will check the current camel-aws code, to see if I can apply the patch for it. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chines

Re: Seda does not work with CXFRS

2014-03-10 Thread Claus Ibsen
What Camel version do you use? And what do you do in that custom route policy? And have you tried without the route policy? And Camel ought to say in the logs when it startup which routes / consumers are started. Don't you see that from the seda? On Tue, Mar 11, 2014 at 7:02 AM, bijoy wrote: >

Re: Seda does not work with CXFRS

2014-03-10 Thread bijoy
*Typo* -> It seems the seda consumers is not coming up. -- View this message in context: http://camel.465427.n5.nabble.com/Seda-does-not-work-with-CXFRS-tp5748598p5748599.html Sent from the Camel - Users mailing list archive at Nabble.com.

Seda does not work with CXFRS

2014-03-10 Thread bijoy
I'm planning to create a REST web service using CXFRS component and want to deploy the service on external Jetty container. I want the web service to work in async mode, so I acknowledge the request with interim response and then pass the request a processor using seda component. Following are the

Re: AWS + CAMEL + DynamoDB - Please Help

2014-03-10 Thread cdfleischmann
Thanks... Yeah, I will move away from the ProducerTemplate of Camel over to the direct API calls from the DynamoDB API. Thanks for your help, was just trying to leverage Camel (framework) where possible, not move to too much code where I could. thanks muchly, Chris -- View this message in con

Re: AWS + CAMEL + DynamoDB - Please Help

2014-03-10 Thread Willem Jiang
Hi, Can you use AmazonDynamoDBClient to send the request ? I just have a quick look at the developer document[1], I didn’t find a place which need the KeySchema. [1]http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LowLevelJavaItemCRUD.html -- Willem Jiang Red Hat, Inc. Web: ht

Re: AWS + CAMEL + DynamoDB - Please Help

2014-03-10 Thread cdfleischmann
I have tried the following...: /*exchange.getIn().setHeader(DdbConstants.KEY_SCHEMA, new KeySchemaElement().withAttributeName("id").withKeyType(KeyType.HASH));*/ Which also doesn't work. I get this error when attempting to execute the send It seems to ignore t

Re: AWS + CAMEL + DynamoDB - Please Help

2014-03-10 Thread Willem Jiang
No, you cannot add the the keySchema into the uri. Current camel-aws-ddb just takes the KeySchema from the message header. I just checked the code of PutItemCommand, it put any KeySchema into request item. The interesting part is aws SDK has a dynamodbv2 package. It looks like AWS has the plan

Re: camel-rabbitmq autoack=false

2014-03-10 Thread Willem Jiang
Hi, We have some autoack related issue in camel 2.12.1. I just checked latest release camel 2.12.3’s code, the autoAck option is set rightly. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willem

Re: Exception propagation with onException + pipeline

2014-03-10 Thread Willem Jiang
Just a quick note, the global onException only works inside of route builder not the whole camel context. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On March

camel-rabbitmq autoack=false

2014-03-10 Thread John H. Clark
I am creating an endpoint as follows using camel-rabbitmq (2.12.2). The endpoint works fine, but appears to be doing an acknowledge even though autoAck=false. String endpoint = "rabbitmq://" + host + ":" + port + "/" + exchange + "?username=" + username + "&password=" + password

AWS + CAMEL + DynamoDB - Please Help

2014-03-10 Thread cdfleischmann
Hello folks, I have tried to use the AWS Camel Component for DynamoDB as discussed here:http://camel.apache.org/aws-ddb.html... I am following the snippet of code in the MOCK Services testing area, as listed here: https://github.com/apache/camel/blob/master/components/camel-aws/src/test/java/org/ap

Re: diagnosing onException problem?

2014-03-10 Thread Claus Ibsen
Hi Well there is a little difference in current code between errorHandler and onException. The former will set the backoff = true automatic public RedeliveryPolicy backOffMultiplier(double multiplier) { useExponentialBackOff(); setBackOffMultiplier(multiplier); return

Re: Nested doTry-doCatch blocks

2014-03-10 Thread Claus Ibsen
Hi Yeah you can do that though its not as often seen in use. See this FAQ https://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html When using java dsl you may need to use endXXX to make the compiler happy. On Mon, Mar 10, 2014 at 4:46 PM, Jose wrote: > Is it poss

Nested doTry-doCatch blocks

2014-03-10 Thread Jose
Is it possible to have nested doTry-doCatch blocks? If so, how the inner block should be ended? For example: .doTry() .doTry() .doCatch() ..end() *.doCatch()* .end() This code does not compile. I get "Compilation error The method

Re: Suspend route after aggregator is complete

2014-03-10 Thread Stephan Burkard
You use a scheduler to give an interval to consume files. Why not using the file component to consume the files (see https://camel.apache.org/file2.html)? It has since Camel 2.12 a "scheduler" property for cron jobs and even in older versions you can use "delay" to schedule directory polling. Wit

Re: diagnosing onException problem?

2014-03-10 Thread Stephan Burkard
Yes, the Java-DSL-example on page 132 is missing it, but on the same page the book says "You also have to enable exponential backoff explicitly by setting the useExponentialBackOff option to true." ;-) Stephan On Mon, Mar 10, 2014 at 3:11 PM, Keith Freeman <8fo...@gmail.com> wrote: > Thanks fo

Retrieving the number of exchanges "enque" in the Disruptor component

2014-03-10 Thread Gershaw, Geoffrey A.
Hello All, I am using camel 12.2 and have seen some buildup with the seda queue. I'm attempting to evaluate using the disruptor. It's a single pub sub config. I'm trying to print the number of exchanges to be processed, which is 41. Although the msgs are being processed, the number returned

Re: opencmis client to run in osgi (karaf)

2014-03-10 Thread chaij
That's correct. -- View this message in context: http://camel.465427.n5.nabble.com/opencmis-client-to-run-in-osgi-karaf-tp5748545p5748560.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: diagnosing onException problem?

2014-03-10 Thread Keith Freeman
Thanks for the tip on useExponentialBackoff(), several examples I found using backoffMultiplier() never mentioned that call (including your book, Camel In Action, page 132 :). On 03/08/2014 12:23 AM, Claus Ibsen wrote: Hi You need to turn on backoff with useExponentialBackOff() And debugging

Re: Exception propagation with onException + pipeline

2014-03-10 Thread Stephan Burkard
Yes, if you define your onException globally. Currently you have defined it locally just for the pipeline. See section "Scopes" at http://camel.apache.org/error-handler.html Stephan On Thu, Mar 6, 2014 at 12:30 PM, Jose wrote: > Hi, > > I facing a problem catching exceptions when I use pipeli

RE: Dead letter queue and onException

2014-03-10 Thread bocamel
Thank you for the explanation. From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5748500...@n5.nabble.com] Sent: Sunday, March 9, 2014 10:02 AM To: bocamel Subject: Re: Dead letter queue and onException Hi This is by design. If onException is triggered then it does it work, an not

Re: AW: Aggregator - complete when newExchange.header('"x") != oldExchange.header("x)

2014-03-10 Thread Henryk Konsek
Hi Andrew, > This does not work > I've tried adding ".eagerCheckCompletion()" but with this i get NPE. It > happens when each message is different (like A B C E insread of A A B B C > C). Can you create the Jira ticket describing the NPE you mentioned? How do you complete your aggregation? Have

Query regarding SES Component

2014-03-10 Thread deepak_a
All, I am trying to use SES Component. I am unable to find any examples on how t use this. MICS I am setting the access keys directly in the Route instead of using Registry for amazonSESClient. Intenti

does camel-hdfs(2.12.3) component support latest hadoop 2.3.0

2014-03-10 Thread liugang594 Liu
Hi All: I'd like to know if camel-hdfs component supports latest hadoop 2.3.0? I saw the dependency of camel-hdfs is hadoop-core-1.2.1.jar, however if I write pure java code to operate hdfs (hadoop 2.3.0) based on this library, I will get error: Exception in thread "main" org.apache.hadoop.ipc.R

Re: Transactional File Producer?

2014-03-10 Thread Claus Ibsen
only works with resources that can participate in a TX such as JMS / JDBC and a few others. See more details at http://camel.apache.org/transactional-client.html And maybe check out about transaction in general on Java and JEE etc. And about the Spring TransactionManager API which is what Camel

Re: opencmis client to run in osgi (karaf)

2014-03-10 Thread Claus Ibsen
Hi And you have installed the camel-cmis feature first? And then afterwards your own bundle? On Mon, Mar 10, 2014 at 4:12 AM, chaij wrote: > I am new to Camel. I am using opencmis client to communicate with Alfresco. > The application works fine in my eclipse env with the following dependency >

opencmis client to run in osgi (karaf)

2014-03-10 Thread chaij
I am new to Camel. I am using opencmis client to communicate with Alfresco. The application works fine in my eclipse env with the following dependency in maven. org.apache.chemistry.opencmis chemistry-opencmis-client-impl

Re: Transactional File Producer?

2014-03-10 Thread ayilliath
Hi, Some help here will be really appreciated :) -- View this message in context: http://camel.465427.n5.nabble.com/Transactional-File-Producer-tp5748379p5748546.html Sent from the Camel - Users mailing list archive at Nabble.com.