Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-14 Thread Claus Ibsen
Hi See this page http://camel.apache.org/using-propertyplaceholder.html The syntax to use inside is {{ }} On Sat, Jul 13, 2013 at 11:38 PM, bonnahu wrote: > Hey guys, > I am new to Camel. Currently, I want to use PropertyPlaceholderConfigurer to > specify the autoStartup option in Camel route

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-14 Thread Willem jiang
Hi Which version of Camel are you using? This issue is related to the schema definition, I think you need to disable the Spring schema validation[1] I just checked the latest camel spring schema, the attribute type of autoStartup is string now, which means you will not hit this kind of issue i

Turning off warning message in ObjectHelper

2013-07-14 Thread kmonging
While upgrading from camel 2.10.4 to camel 2.10.5, i noticed some additional warning messages in the ObjectHelper class, is there anyway to turn it off? The value is assigned correctly, just the annoying warning message. :( Below are the snippet of the configuration and logs.

Camel CXF WSDL first example

2013-07-14 Thread Tracy Snell
At long last I'm getting to spend time in Camel again. Writing a series of simple examples. Things folks I work with had trouble figuring out how to do mostly. Posted the first one athttp://code.notsoclever.cc/camel-cxf-component-wsdl-first-example/. tjs (slowly emerging from a year of PHP and

Using GAuth to fetch all emails from a Gmail account

2013-07-14 Thread ryant
I've been reading the documentation about both the GAuth and IMAP components but I'm not clear on if what I'm trying is possible. I've also searched Google and the mailing list so I apologize if this has been asked before. I'm trying to figure out how to access all the messages in a Gmail account

Re: does hazelcast component support stand-alone HC server?

2013-07-14 Thread Claus Straube
You can use the standard hazelcast XML configuration. There is no Camel specific magic. See http://www.hazelcast.com/ for a very detailed documentation. Best regards - Claus On 13.07.2013 13:21, Claus Ibsen wrote: I assume the idea is that you configure an existing com.hazelcast.core.Hazelcas

DeadLetterErrorHandler queue not created

2013-07-14 Thread shin938
I configured a DeadLetterErrorHandler like that: and referenced it in my routes : the redeliveries work, but the DLQ is not created, or at least I can't see it anywhere. I check in activemq web console where i usually s

Re: Camel CXF WSDL first example

2013-07-14 Thread Christian Müller
Welcome back Tracy! And thanks for sharing your experience and solution. Feel free to link to your blog from our articles page [1]. I hope we will see more of this blogs in the future ;-) One note to this blog post. In the beginning, you write: 2. Create a Producer (our server) 3. Create a Consum

Re: DeadLetterErrorHandler queue not created

2013-07-14 Thread Christian Müller
The queues are created lazy (when the first message is enqueued), but I think the issue is: You configured: You should have configured: Or is it a copy / past / modify issue? Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org

Re: Error in camel-bindy

2013-07-14 Thread Christian Müller
What issue do you hit? You should define the dependency to 2.9.x in your pom and exclude duplicated dependencies to 2.8.x. Executing mvn dependency:tree is helpful. Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apach

Re: OneToMany in camel-bindy

2013-07-14 Thread Christian Müller
Hi Joe! As you know, we love contributions. But I'm not sure whether I understood your proposed solution (I'm quite sure I understood your requirement). At present, the splitter EAI pattern + a content based router and multiple Bindy models could solve your requirement. Best, Christian -

Re: CSV files processing

2013-07-14 Thread Christian Müller
Bindy always maps an "ObjectMaster" and the contained objects to one line [1]. [1] https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/csv/BindyCsvDataFormat.java;h=3ab36149f803b665eac43e42bbde09bada86d329;hb=HEAD Bes

Re: JMS route transaction timeout

2013-07-14 Thread Christian Müller
OnException should come before transacted [1]. [1] http://camel.465427.n5.nabble.com/transacted-in-combination-with-onException-td5719591.html Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.a

Re: REST best practices

2013-07-14 Thread Christian Müller
There is no component which supports this specific requirement. You have to write your own bean which parse the returned HTML and find the HTTP URI's. Afterwards you can use the producer template [1] to access this URI's. [1] http://camel.apache.org/producertemplate.html Best, Christian -

Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-14 Thread Christian Müller
> Now I modified the CamelCXFProviderRouteConfig.xml in the same project. What did you modify? Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www

Re: org.apache.camel.CamelException: Cannot connect to

2013-07-14 Thread Christian Müller
Will have a look in the coming week... Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https://www.linkedin

Re: org.apache.camel.CamelException: Cannot connect to

2013-07-14 Thread Willem jiang
When you using 0.0.0.0:7000 on the server side, netty will listen to all the net work interfaces, such as localhost and ips which you can access outside. But 0.0.0.0 don't work for the client side, because we don't know which address it really means, it could localhost or the other network interf

Re: REST best practices

2013-07-14 Thread AlanFoster
Hi, I imagine your implementation may be able to leverage the enrich enricher[0] pattern after receiving the initial request - or make use of recipientsList with in/out MEP and an expression language of your choice to extract out the required URL if it's dynamic - as suggested by your last line; T

Cannot access CamelLoopIndex in route using spel

2013-07-14 Thread bocamel
I need to access CamelLoopIndex within a route. According to http://camel.apache.org/loop.html, CamelLoopIndex is a property in the Exchange while in the loop. I tried this simple test route: Count 5 #{body + ':' + property(CamelLoopIndex)}

Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-14 Thread Willem jiang
Hi, If you changed the protocol form http to https, you need to add some configuration on the Jetty engine just like this[1] [1]http://cxf.apache.org/docs/jetty-configuration.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.re

Re: Cannot access CamelLoopIndex in route using spel

2013-07-14 Thread Willem jiang
Hi, If you want to access the CamelLoopIndex, you should use properties['CamelLoopIndex'] instead of property(CamelLoopIndex). -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://

RE: Cannot access CamelLoopIndex in route using spel

2013-07-14 Thread bocamel
Thanks Willem. Your suggestion worked beautifully. From: Willem.Jiang [via Camel] [mailto:ml-node+s465427n5735642...@n5.nabble.com] Sent: Sunday, July 14, 2013 10:19 PM To: bocamel Subject: Re: Cannot access CamelLoopIndex in route using spel Hi, If you want to access the CamelLoopInde

Re: Accessing a local declared hashmap variable in a route

2013-07-14 Thread boday
you can use camel-simple to do this... from("direct:start") .choice() .when().simple("${body.keySet} contains 'foo'") .to("mock:king") .otherwise() .to("mock:other"); clipod wrote > Hi, > I have a camel route with a choice

Re: org.apache.camel.CamelException: Cannot connect to

2013-07-14 Thread kiranreddykasa
Hi, As mentioned earlier only some of the requests (1%) are failing with the above exception, remaining all are processing successfully. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-CamelException-Cannot-connect-to-tp5735414p

Re: Graceful shutdown not working

2013-07-14 Thread miljenko
Tested, it works :) -- View this message in context: http://camel.465427.n5.nabble.com/Graceful-shutdown-not-working-tp5733697p5735648.html Sent from the Camel - Users mailing list archive at Nabble.com.