Re: classpath problem with camel:dot and provided dependencies

2011-01-11 Thread Willem Jiang
Hi, You don't have to run the camel application when run camel:dot. Please set the runCamel configure to be false to work around this issue. BTW, you may try to add the servlet API dependency as test scope to see if the application can start rightly.. Willem On 1/12/11 12:58 AM, Pablo Graña w

Re: how to find out if a ftp file consumer has finished reading all files available?

2011-01-11 Thread Claus Ibsen
See also chapter 13 in the Camel book And this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Wed, Jan 12, 2011 at 12:57 AM, Deepti Bhogle wrote: > Hello everyone, > I have a route set up to connect to a remote ftp server to download and > process documents. > I wish to

Re: CAMEL-3530: Additional Scala type converters

2011-01-11 Thread Claus Ibsen
Hi Craig Welcome to the community. Thanks for the patch. Hadrian have already looked at it and committed it. So keep 'em coming. We can use some help on the camel-scala module which seems to have caught your interrest. On Wed, Jan 12, 2011 at 4:32 AM, Craig McDaniel wrote: > https://issues.ap

Re: classpath problem with camel:dot and provided dependencies

2011-01-11 Thread Claus Ibsen
2011/1/12 Pablo Graña : > Thanks for your answer. > > The problem is that in my maven project I have: > >       >        javax.servlet >        servlet-api >        2.5 >        provided >       > > camel-maven-plugin only includes jars with the compile scope in the > classpath. jars with the provi

Re: ActiveMQ ?query='..' URI parameter not accepted

2011-01-11 Thread Nick Heudecker
I recently ran into this problem with the 'consumer.exclusive' parameter. The solution was to define a JmsEndpoint in my Spring context and use that in the route. On Tue, Jan 11, 2011 at 6:20 PM, Barry Kaplan wrote: > > Looking at the jms and activemq docs (haven't yet looked at the code) it >

CAMEL-3530: Additional Scala type converters

2011-01-11 Thread Craig McDaniel
https://issues.apache.org/jira/browse/CAMEL-3530 I've created a ticket and attached a patch to add new type converters from various input formats to scala.xml.Elem. The patch includes the converters and unit tests. XML in String, DOM Document, or DOM Node format can be automatically converted with

ActiveMQ ?query='..' URI parameter not accepted

2011-01-11 Thread Barry Kaplan
Looking at the jms and activemq docs (haven't yet looked at the code) it appears that there are a whole set of parameters that cannot be passed thru to activemq. Specifically I have a custom QueryBasedSubscriptionRecoveryPolicy and need to pass the 'query' parameter. Is there some back door mech

Re: classpath problem with camel:dot and provided dependencies

2011-01-11 Thread Pablo Graña
Thanks for your answer. The problem is that in my maven project I have: javax.servlet servlet-api 2.5 provided camel-maven-plugin only includes jars with the compile scope in the classpath. jars with the provided scope are not included, hence the cla

Re: classpath problem with camel:dot and provided dependencies

2011-01-11 Thread Ashwin Karpe
Hi, Please check out the following http://camel.apache.org/camel-dot-maven-goal.html http://camel.apache.org/camel-dot-maven-goal.html This is a class not found issue, so you are missing the required jars on the classpath. Cheers Ashwin... - -

Re: how to find out if a ftp file consumer has finished reading all files available?

2011-01-11 Thread Ashwin Karpe
Hi, The camel-ftp component is a polling component. On each pass it will pick up all the files present in the remote directory. If you want to run this like a batch job on a schedule please check out http://camel.apache.org/simplescheduledroutepolicy.html http://camel.apache.org/simplescheduledro

Re: RSS component doesn't work

2011-01-11 Thread Ashwin Karpe
Hi, can you please indicate how you are running this (JUnit, Java Mainline, Spring, Tomcat etc), camel version and other relevant details. Not sure what your environment is... In the absence of this data, my best guess is that you are missing a RSS dependency for camel-rss. You might also want

how to find out if a ftp file consumer has finished reading all files available?

2011-01-11 Thread Deepti Bhogle
Hello everyone, I have a route set up to connect to a remote ftp server to download and process documents. I wish to shutdown the route after it finishes processing all the documents available from the ftp server. I dont have any way to find out if the given ftp consumer got all files. Is there any

Re: RoutingSlip and Splitter

2011-01-11 Thread serega
Claus Ibsen-2 wrote: > > > If the split is the same then just add it as a separate route and link > using direct endpoint > > from("direct:splitMe") >.split(body().tokenize(",")) >.recipientList(header("route")); > > And then just send to "direct:spltMe" in your routing slip. > > Cla

Re: RoutingSlip and Splitter

2011-01-11 Thread Claus Ibsen
On Tue, Jan 11, 2011 at 9:34 PM, serega wrote: > > I was able to achieve splitting before recipient list. Here is my test route >  ChoiceDefinition choice = from("direct:e").bean("RoutingSlip", > "computeSlip").choice(); > > choice.when(header("split").isNotNull()).split(body(String.class).tokeniz

Re: RoutingSlip and Splitter

2011-01-11 Thread serega
I was able to achieve splitting before recipient list. Here is my test route ChoiceDefinition choice = from("direct:e").bean("RoutingSlip", "computeSlip").choice(); choice.when(header("split").isNotNull()).split(body(String.class).tokenize(",")).recipientList(header("route")); choice.otherwise(

Re: RoutingSlip and Splitter

2011-01-11 Thread Claus Ibsen
On Tue, Jan 11, 2011 at 7:51 PM, serega wrote: > > I have the following use case. > A message needs to go through a sequence of steps not known during design > time, and finally goes out to some JMS queue, also not known at desing time. > A RoutingSlip design pattern fits to this use case. But, so

Re: General Camel WS client concern

2011-01-11 Thread mferris
Willem, Thank you for your coaching. I will post my failed example using this com.cdyne.ws.weatherws WS later. There appear to be 4 ports (endpointNames?) to this 'Weather' service (and 3 w/ my corp WS) http://ws.cdyne.com/WeatherWS/Weather.asmx"; /> http://ws.cdyn

RoutingSlip and Splitter

2011-01-11 Thread serega
I have the following use case. A message needs to go through a sequence of steps not known during design time, and finally goes out to some JMS queue, also not known at desing time. A RoutingSlip design pattern fits to this use case. But, some messages _may_ need to be split before going out to th

Re: errorHandler when stopping routes in test

2011-01-11 Thread Claus Ibsen
We'll revist this in Camel 3.0 where applying interceptors/error handlers and the likes is more flexible and applied dynamic at runtime. The issue is the stop route causes side effect on the other adviced routes. On Mon, Jan 10, 2011 at 4:54 PM, John wrote: > > Hi, > > I'm running 2.6-SNAPSHOT.

classpath problem with camel:dot and provided dependencies

2011-01-11 Thread Pablo Graña
hi all: I am trying to run camel:dot in my project, but it is failing with a class not found exception. In my case, I am instantiating a servlet from the spring application context. The jar that includes the servlet interface is marked as provided. It looks like camel:dot is not included provided

File component - infinite consume on failure

2011-01-11 Thread mitko . kolev
Hello Everyone, I am having a problem using the file component's "inifinite consume on failure" feature. Here is what I want to do in the route: 1) from("file:input?delete=true") 2) validation step 3) processing step 3) put the transformed in a queue and finish

Re: errorHandler when stopping routes in test

2011-01-11 Thread John
I'm running the test via junit4. My test class extends CamelTestSupport. Below is the test itself, if that helps. Thanks! -john @Test public void testIssue() throws Exception { RouteDefinition testRoute = context.getRouteDefinition("TestRoute"); testRoute.adviceWith(co

Re: Dynamic from endpoint

2011-01-11 Thread Claus Ibsen
On Tue, Jan 11, 2011 at 12:23 PM, Johan Haleby wrote: > > Hi, > > I need to dynamically configure "from" endpoints at runtime. The reason is > that I need to poll RSS URI's and an administrator must be able to add or > remove which RSS URI's to poll at run-time (from a web interface). What's > the

Re: how to handle exceptions in camel

2011-01-11 Thread Claus Ibsen
The best resource would be chapter 5 in the Camel in Action book which is devoted to error handling. Read also here http://camel.apache.org/error-handling-in-camel.html And since you use JBI check out the handle fault to turn exceptions into JBI faults if that's what you need On Tue, Jan 11, 20

Re: Error with Body type (camel 2.4)

2011-01-11 Thread Claus Ibsen
Yeah ah 4xx error code is on the client side :) On Tue, Jan 11, 2011 at 1:08 PM, Charles Moulliard wrote: > FORGET MY EMAIL. THERE WAS AN ERROR IN MY SYNTAX > > from("direct:start") >  .to("http://localhost:9090/upload)") > > SHOULD BE > > from("direct:start") > .to("http://localhost:9090/upload

Re: Error with Body type (camel 2.4)

2011-01-11 Thread Charles Moulliard
FORGET MY EMAIL. THERE WAS AN ERROR IN MY SYNTAX from("direct:start")  .to("http://localhost:9090/upload)") SHOULD BE from("direct:start") .to("http://localhost:9090/upload";) ) parenthesis was added On Tue, Jan 11, 2011 at 12:31 PM, Charles Moulliard wrote: > Hi, > > I have created a unit t

Error with Body type (camel 2.4)

2011-01-11 Thread Charles Moulliard
Hi, I have created a unit test using camel-2.4 to send HTTP request to a Jetty Server deployed on SMX4. It works fine when I create an HTTP request from my browser but get the following error when running the test Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.055 sec <<< FAILU

Dynamic from endpoint

2011-01-11 Thread Johan Haleby
Hi, I need to dynamically configure "from" endpoints at runtime. The reason is that I need to poll RSS URI's and an administrator must be able to add or remove which RSS URI's to poll at run-time (from a web interface). What's the preferred way to achieve this? /Johan -- View this message in