Re: handling large files

2009-10-15 Thread Claus Ibsen
On Wed, Oct 14, 2009 at 10:28 PM, mcarson mcar...@amsa.com wrote: In order to get the scanner solution to work, I would still need some way to start polling on the directory at the beginning of my camel route, correct? Is there a way to use the file component (or any components) as a from to

Re: Calling setHeader() after to()

2009-10-15 Thread Claus Ibsen
On Wed, Oct 14, 2009 at 11:07 PM, Dragisa Krsmanovic dkrsmano...@plos.org wrote: On Wed, 2009-10-14 at 05:58 +0200, Claus Ibsen wrote: Ah the reason is that the javac and generics is limited in terms of DSL wise. What you need to do is to pass in the xpath as a 2nd parameter to setHeader.

Re: reading endpoints from a properties file

2009-10-15 Thread Claus Ibsen
Hi Go vote for this issue http://jira.springframework.org/browse/SPR-4466 The spring people just keep ignoring it as it affect none of their own products. So we need to have more votes on it. Also there is a FAQ about the issue

Servlet End-Point Route Processing in XML

2009-10-15 Thread Me Coder
I'd greatly appreciate help in converting the below route into its XML equivalent. I am stuck at the part on how to set the content type, charset header and the body of the response itself. Thanks... from(servlet:///hello?matchOnUriPrefix=true).process(new Processor() { public void

Re: JmsComponent uses spring's deprecated class

2009-10-15 Thread Claus Ibsen
Hi We have not upgraded to Spring 3.0 yet in Apache Camel. We wait for the official 3.0 release to be GA. There may be other areas where Spring 3.0 is causing issues. We haven't started looking into that. I do wonder if anyone is using the old 1.02 JMS API anymore? Maybe some old JMS brokers

Re: Servlet End-Point Route Processing in XML

2009-10-15 Thread Claus Ibsen
There is a setHeader tag. Which accepts an expression. So we can use the simple language to concat a dynamic string. setHeader name=Content-Typesimple${in.header.Content-Type};charset=UTF-8/simple/setHeader You can also just use the old java code and refer to it as a processor bean

Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Ryadh Amar
Hello Camel Riders, I wanted to tryout some of the examples bundled with the current downloadable distribution of Camel (2.0.0) Maven fails, but I have pinpointed the culprit; in each example, the parent pom (which can be found in the examples directory) is referenced this way:

Re: JmsComponent uses spring's deprecated class

2009-10-15 Thread linuca
I just switched to Spring 2.5.6, and it's working fine. Please, I want a decent manual for Camel! It's such a good thing that we have a forum al least. Thanks. -- View this message in context: http://www.nabble.com/JmsComponent-uses-spring%27s-deprecated-class-tp25897204p25907601.html Sent

How to aggregate all messages into a single message?

2009-10-15 Thread kodcanavari
Hi, I want to use an aggregator in order to aggregate all messages comming. On my route i'm making a split with a splitter , then i process every messages in parallel and then i want to aggregate them all into a single file. Here is my snippet : this.from(FROM_FOLDER).split(new

Re: JmsComponent uses spring's deprecated class

2009-10-15 Thread Claus Ibsen
On Thu, Oct 15, 2009 at 2:23 PM, linuca lin...@mailinator.com wrote: I just switched to Spring 2.5.6, and it's working fine. Please, I want a decent manual for Camel! It's such a good thing that we have a forum al least. A manual is here http://camel.apache.org/manual.html Also use the

Re: How to aggregate all messages into a single message?

2009-10-15 Thread Claus Ibsen
Hi The splitter has build in join so you can do that all together with the aggregator. See the Split aggregate request/reply sample in http://camel.apache.org/splitter.html On Thu, Oct 15, 2009 at 3:01 PM, kodcanavari kodcanav...@gmail.com wrote: Hi, I want to use an aggregator in order to

Re: How to aggregate all messages into a single message?

2009-10-15 Thread Dmitry Ulanov
Try to use this.from(FROM_FOLDER).split(new LdapEntitySplitExpression(), new LdapAggregationStrategy()).process(new LdapModifyProcessor()).end().to(TO_FOLDER); On Thu, Oct 15, 2009 at 5:01 PM, kodcanavari kodcanav...@gmail.com wrote: Hi, I want to use an aggregator in order to aggregate all

Re: How to aggregate all messages into a single message?

2009-10-15 Thread Claus Ibsen
Ah it should haven been without together *with out* the aggregator. On Thu, Oct 15, 2009 at 3:05 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi The splitter has build in join so you can do that all together with the aggregator. See the Split aggregate request/reply sample in

Re: Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Jon Anstey
Whoa, that is bad. I tried out the latest from http://repo2.maven.org/maven2/org/apache/camel/apache-camel/2.0.0/apache-camel-2.0.0.tar.gzand it only seems that examples/camel-example-tracer/pom.xml has the SNAPSHOT (still bad of course but not as bad as all examples containing SNAPSHOTs!). Btw

Re: JmsComponent uses spring's deprecated class

2009-10-15 Thread linuca
Claus Ibsen-2 wrote: A manual is here http://camel.apache.org/manual.html I have already read this manual, it is good, but not good enough for me. Also use the google search bar in the front page of the camel website. I've already tried this. There are examples, but I think they

Re: Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Ryadh Amar
Hi Janstey, Looks like I was wrong, I really believed that all the examples were affected... Excuse the haste :D But as you've noticed, camel-tracer-example still references the SNAPSHOT. Thanks for you efforts. janstey wrote: Whoa, that is bad. I tried out the latest from

Re: Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Jon Anstey
No worries. Thanks for reporting this. I think I have a fix for the next release :) On Thu, Oct 15, 2009 at 11:20 AM, Ryadh Amar magnetic.gan...@gmail.comwrote: Hi Janstey, Looks like I was wrong, I really believed that all the examples were affected... Excuse the haste :D But as you've

Feeding an Async Processor from an ActiveMQ topic

2009-10-15 Thread Jörn Kottmann
Hello, in this route the messages are read from an ActiveMQ topic and then send to an Async Processor. The Async Processor drives the processing in an other systems which processes 100 messages parallel. How can I configure camel to keep the Async Processor supplied with at least 100 messages

Re: Feeding an Async Processor from an ActiveMQ topic

2009-10-15 Thread Jörn Kottmann
Jörn Kottmann wrote: Claus Ibsen wrote: Hi You only have 1 consumer listening on the JMS topic property name=concurrentConsumers value=1 / Try increasing this number. JMS Topics can only have one concurrent consumer, so I guess I have to switch to a Queue, would it then run 100

Using HTTPS in camel-http when remote side has self-signed cert

2009-10-15 Thread Scott Parkerson
I'm trying to use Camel's HTTP component to send a POST request to a web service using HTTPS. When I attempt to connect, I get the following exception: org.apache.camel.RuntimeCamelException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building

Dynamic RecipientList delimeter issue

2009-10-15 Thread chrajanirao
We upgraded from Camel 1.5 to 2.0 and realized that the default behavior of RecipientList has changed. Even though in 2.0, we can specify a delimiter, comma is always considered as a delimiter on top of what ever we specified as our custom delimiter. Is there a way to make it ignore commas in

Re: Dynamic RecipientList delimeter issue

2009-10-15 Thread Claus Ibsen
On Fri, Oct 16, 2009 at 1:52 AM, chrajanirao rajan...@gmail.com wrote: We upgraded from Camel 1.5 to 2.0 and realized that the default behavior of RecipientList has changed. Even though in 2.0, we can specify a delimiter, comma is always considered as a delimiter on top of what ever we

camel-jetty to handle prefix uri?

2009-10-15 Thread Barry Kaplan
Is there any way to use a partial uri with camel-jetty? eg, from(jetty:http://host/;) where http://host/foobar; would be handled (and the processor would decide what to do given the full uri)? -barry -- View this message in context:

Re: Dynamic RecipientList delimeter issue

2009-10-15 Thread Claus Ibsen
On Fri, Oct 16, 2009 at 5:52 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Oct 16, 2009 at 1:52 AM, chrajanirao rajan...@gmail.com wrote: We upgraded from Camel 1.5 to 2.0 and realized that the default behavior of RecipientList has changed. Even though in 2.0, we can specify a

Re: camel-jetty to handle prefix uri?

2009-10-15 Thread Claus Ibsen
On Fri, Oct 16, 2009 at 6:32 AM, Barry Kaplan grou...@memelet.com wrote: Is there any way to use a partial uri with camel-jetty? eg, from(jetty:http://host/;) where http://host/foobar; would be handled (and the processor would decide what to do given the full uri)? I think its the option

Re: What is recommended way of running many route sets in one application?

2009-10-15 Thread Claus Ibsen
On Wed, Oct 14, 2009 at 4:21 PM, Vladimir Okhotnikov vokhotni...@gmail.com wrote: Hi, in our setup we would like to package different set of routes for different tasks into one java-based windows service. For example, we have one task to import files from some ftp to one clients database,