Re: Scheduled FTP download

2012-07-31 Thread Lance Walton
Hi. I've given this a try, and with a bit of fiddling, it seems to work. Thank you. Now the next challenge... I sometimes need to remove the route from the camel context and re-add it with different properties. When I try to re-add it, I get an ObjectAlreadyExistsException because a job alread

Re: Using timer and MongoDb queries

2012-07-31 Thread Sam (Stephen Samuel)
You could use the timer to fire off into a processor, and then in the processor do a query, and then do what you want from there, so from("timer://myTimer?period=3").process(new Processor() { // mongo code here }) On Tue, Jul 31, 2012 at 5:12 PM, rich_g wrote: > Hi all > I want to make a

Re: Howto add routes to CamelContext on the fly.

2012-07-31 Thread Pontus Ullgren
Hello, Provided that you add/remove the routes in a processor you can simply get the current camel context from the Exchange[1]. If you need the camel context in another bean you can use dependency injection when you create that bean. [1] http://camel.apache.org/maven/current/camel-core/apidocs

Re: Scheduled FTP download

2012-07-31 Thread tnk
Hi, you can try using cron scheduled route policy (http://camel.apache.org/cronscheduledroutepolicy.html) -- View this message in context: http://camel.465427.n5.nabble.com/Scheduled-FTP-download-tp5716638p5716639.html Sent from the Camel - Users mailing list archive at Nabble.com.

Scheduled FTP download

2012-07-31 Thread Lance Walton
Hi. I'm trying to put together a scheduled download from an FTP site. I thought I could do this by using a route composed of a quartz endpoint to an FTP endpoint to a file endpoint. However it looks like the FTP endpoint is trying to write something rather than read it, which kind of makes sens

Howto add routes to CamelContext on the fly.

2012-07-31 Thread bbuzzard
I'm creating a java class that I want to add the the ActiveMQ-Camel libs that will periodically query a database for routes and add or remove them from the active camel context. The camel.xml file contains some default routes that I use all the time, but I will like to add new routes to the same c

Re: NPE in RouteContextProcessor

2012-07-31 Thread Steve Drach
On 7/31/12 2:40 AM, "Willem jiang" wrote: >What's your Camel route look like ? Here's the subset that shows the path taken, starting with "spool:core". The section marked with < is the last one I see in the trace. /* From Core */ from("spool:core:store")

Using timer and MongoDb queries

2012-07-31 Thread rich_g
Hi all I want to make a timer that polls a Mongo collection to get data with an id > variable set at runtime. I am able to get a timer working using but don't know how to set a query filter from("timer://myTimer?period=3") .to("mongodb:myDb?database=test&collection=test&operation=f

URISupport.normalizeUri different result from camel 2.8.2 to 2.10.0

2012-07-31 Thread Marco Crivellaro
Hi all, I am migrating my application from Camel 2.8.2 to Camel 2.10.0 and found following issue: when normalizing a uri with URISupport.normalizeUri which contains %26 in one of its parameters the entity is transformed to '&' and essentially lost from the parameter value; this was not happening w

Apache Camel ZookeeperRoutePolicy

2012-07-31 Thread hokiedeveloper
I'm using Camel 2.9 and specifically the Camel ZookeeperRoutePolicy to control multiple instances of Zookeeper Routes across a cluster. It seems to be working in a simplistic case, but what happens in the case of a failure to read from the needed nodes in Zookeeper? Does or should the ZookeeperRout

Re: Scala DSL - How do I give a route an id?

2012-07-31 Thread Henryk Konsek
> Perfect. Thanks for the excellent and speedy response. This kind of knowledge shouldn't be spread only by the word of mouth. :) I've updated the wiki [1]. [1] https://cwiki.apache.org/confluence/display/CAMEL/Scala+DSL+-+Getting+Started -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: Not writing to Error queue

2012-07-31 Thread James Carman
Are you using (perhaps JTA-based) transactions? Is your transaction rolling back? On Mon, Jul 30, 2012 at 2:02 AM, nishant.rupani wrote: > No, source MQ queue and error MQ queue are different. > > First I tried with single JMS "wmq" only. It didn't work so I thought of > creating two - one for

Re: soap over jms

2012-07-31 Thread Pontus Ullgren
Hello Bhushan, As Willem say you need to use a topic if you want all messages to go to both endpoints. Or, if you for some legacy reason can not change the destination to a topic, you could create one camel route that simply gets the messages and then use a recipient list[1] to route to two routes

Re: NPE in RouteContextProcessor

2012-07-31 Thread Willem jiang
What's your Camel route look like ? -- Willem Jiang On Tuesday, July 31, 2012 at 7:52 AM, Steve Drach wrote: > I'm using Camel 2.4.10. I'm get a NPE in RouteContextProcessor at line 42: > > 29 public class RouteContextProcessor extends DelegateAsyncProcessor { > ... > 38 @Override > 39 prote

Re: soap over jms

2012-07-31 Thread Willem jiang
Hi, You need to use the topic if you want to send the message to the two endpoint at the same time. -- Willem Jiang On Tuesday, July 31, 2012 at 2:57 PM, bhushand wrote: > Hi > One more thing, can I use same queue for two endpoints. Right now I am > trying to do same thing but it is giving