newbie help

2009-12-28 Thread yaog
Hi, I am a newbie with Camel. 1. how does the routesBuilder work in IDS? simple "from" and "to in code of course does not compile... 2. I have the following spring section: http://camel.apache.org/schema/spring";>

Re: Issue in upload with Camel

2009-12-28 Thread Hebert Hu
I started the upload like this CamelContext context = new DefaultCamelContext(); RouteBuilder route = createRouteBuilder(); context.addRoutes(route); context.start(); I'm able to get the route service status by RouteDefinition definition = context.getRouteDefinitions().get(0); context.getRouteS

Re: Startup invocation of a route

2009-12-28 Thread Stephen Gargan
Christopher, Claus has got you covered ;) There is an EventNotification mechanism that you can use. Add the following to your routes configure public class InvokedOnStartupRoute extends RouteBuilder { @Override public void configure() throws Exception { final CamelContext context

Re: Issue in upload with Camel

2009-12-28 Thread Willem Jiang
How did you trigger the uploading thread ? You can let the main thread wait for your uploading thread, if you start the uploading thread from the main thread. Willem Hebert Hu wrote: Thanks for your swift reply. I think I found the problem just due to the uploading and downloading at the sa

Re: Issue in upload with Camel

2009-12-28 Thread Hebert Hu
Thanks for your swift reply. I think I found the problem just due to the uploading and downloading at the sametime. One more question, it seems that the uploading process is runing on a separate thread. Sometimes the main program finishes before the uploading thread returns, that stops the upload

Re: Startup invocation of a route

2009-12-28 Thread huntc
Hi Stephen, Thanks for your response. I do understand the use of the direct component, but thanks for the explanation any how. I guess using the Spring Events mechanism will get me there, but it'd be nice to codify the solution in a way that remains agnostic of being invoked from Spring. I'm t

Re: camel-xmpp througth proxy

2009-12-28 Thread Willem Jiang
Hi, I just did a quick search and find Smack API 3.1.0 (which is not finally released yet) supports the proxy setting[1]. And now we use the Smack API 3.0.4 in camel-xmpp component, and it doesn't support the proxy setting. Please feel free to submit a upgrading patch for it :) [1]http://www

Re: Startup invocation of a route

2009-12-28 Thread Stephen Gargan
Hi, So I like to think of "direct" endpoints as internal connectors for for linking routes. They are a great way of decoupling the business and workflow logic in your routes from the transport related logic. Say for instance your service that Quartz executes is defined in a bean 'myservice'. You

Startup invocation of a route

2009-12-28 Thread huntc
One thing that has always eluded me is how to specify that something be done immediately upon the CamelContext having started up. For example, I have a Quartz based service that executes every hour at 10 minutes past the hour. However when the CamelContext starts up I'd like this service to be in

Re: question: ActiveMQ component - optimization technics

2009-12-28 Thread Nick Chistyakov
Yes, Claus :) I understand :) No offense meant! On Mon, Dec 28, 2009 at 9:32 PM, Claus Ibsen wrote: > On Mon, Dec 28, 2009 at 3:24 PM, Nick Chistyakov > wrote: > > Hi Claus! > > > > Not the easiest way to get to know it :))) > > But thanks! > > This is not the final answer. The people who crea

Re: question: ActiveMQ component - optimization technics

2009-12-28 Thread Claus Ibsen
On Mon, Dec 28, 2009 at 3:24 PM, Nick Chistyakov wrote: > Hi Claus! > > Not the easiest way to get to know it :))) > But thanks! This is not the final answer. The people who created the component may have more details about the optimizations etc. I personally dont have the time to track that dow

Re: question: ActiveMQ component - optimization technics

2009-12-28 Thread Nick Chistyakov
Hi Claus! Not the easiest way to get to know it :))) But thanks! Best regards, Nick On Mon, Dec 28, 2009 at 11:57 AM, Claus Ibsen wrote: > Hi > > > On Sun, Dec 27, 2009 at 6:42 PM, Nick Chistyakov > wrote: > > Hello guys, > > > > Merry christmas! Hope you are having a good time! > > > > Somet

Re: CAMEL and WebDAV ?

2009-12-28 Thread Claus Ibsen
Hi There is also Milton http://milton.ettrema.com/index.html Its Apache licensed so we can create a component for it and have it in the Camel kit. But I guess if JackRabbit is on the WebDav wagon you can maybe use camel-jcr? http://camel.apache.org/jcr On Tue, Dec 22, 2009 at 9:01 AM, Charles

Re: Issue in upload with Camel

2009-12-28 Thread Claus Ibsen
Hi And uploading and downloading at the *same* time from the same JVM may not be a good idea. You may start to download files while they are being uploaded. I wonder if the FTP server supports locking the file during upload process. You can use tempPrefix to upload the files with a inprogress fil

Re: Issue in upload with Camel

2009-12-28 Thread Claus Ibsen
Hi What version of Camel are you using? I can see you are using Windows which have some issues with its file system locking files. We have made some recent fixes in the 2.2 trunk code and 2.1 as well. So try with latest version. On Mon, Dec 28, 2009 at 9:18 AM, Hebert Hu wrote: > > Hi, > > I'

Re: question: ActiveMQ component - optimization technics

2009-12-28 Thread Claus Ibsen
Hi On Sun, Dec 27, 2009 at 6:42 PM, Nick Chistyakov wrote: > Hello guys, > > Merry christmas! Hope you are having a good time! > > Sometimes, reading the project documentation, I come across the declarations > that the ActiveMQ component of Camel project is set up with a number of > optimization

Issue in upload with Camel

2009-12-28 Thread Hebert Hu
Hi, I've encountered a strange problem when using Camel Sftp component for uploading. Here's my code protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { public void configure() throws Exception { from("file:c:\\uplo