Re: Clustering with camel-quartz

2010-06-03 Thread Claus Ibsen
Hi Ingo On Thu, Jun 3, 2010 at 10:30 PM, Ingo Düppe wrote: > Hi Claus, > > well I'm not sure if it is right. But I guess if the trigger is marked > as volatile it will be automatically removed within in the database. > Normally volatile jobs won't be stored in a db but in a cluster > environment

FTP Component That Consumes On Demand

2010-06-03 Thread Carlo Camerino
Hi, Is there an ftp component that consumes a file on edemand? and not a polling. for example i have the file name already and want to fetch this file coming from an ftp server, how would i route it? from("direct:getfile").to("ftp://someurl?file-name=sd?";) would this fetch a file or would thi

Re: Clustering with camel-quartz

2010-06-03 Thread Ingo Düppe
Hi Claus, well I'm not sure if it is right. But I guess if the trigger is marked as volatile it will be automatically removed within in the database. Normally volatile jobs won't be stored in a db but in a cluster environment they will be. The problem with camel is, that I cannot define an volati

Re: Direct-route not shared across contexts?

2010-06-03 Thread Claus Ibsen
Hi I have created unit tests in both pure Java and with Spring XML and cannot reproduce any such behavior http://svn.apache.org/viewvc?rev=951088&view=rev Direct endpoints with same endpoint uri is not shared between multiple CamelContext. So double check on your end what you may do wrong or wha

Re: Getting exception when using retryUntil with concurrentConsumers

2010-06-03 Thread Claus Ibsen
On Thu, Jun 3, 2010 at 12:24 PM, Srini97 wrote: > > If I use it below by removing threads()  it is taking the messsages one by > one even though there are concurrent consumers. > What JMS Broker are you using? Normally using concurrentConsumer=5 on the JMS endpoint will have 5 threads process new

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
Thanks William, I tried the GET method but it still gave the same results. regards, willem.jiang wrote: > > Hi, > > Maybe you should try to use GET method instead of the POST method to get > the file. > > Willem > > Nav1771 wrote: >> Hi, >> I am a beginner with Camel. I am trying to

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
Thanks Claus for the reply. I will set the tracer and see. Yes the http path returns valid data. Claus Ibsen-2 wrote: > > Hi > > Use the tracer to see what is going on > http://camel.apache.org/tracer > > And does that remote HTTP server return valid data. > > > On Thu, Jun 3, 2010 at 11:1

Re: Direct-route not shared across contexts?

2010-06-03 Thread ankelee
Hi Running on Windows in JVM 1.6. I'm just loading it into a Spring container in Java main: private static String fileRessource = "isuite-client-context.xml"; ClassPathXmlApplicationContext x = new ClassPathXmlApplicationContext(fileRessource); Claus Ibsen-2 wrote: > > Hi > > Whats yo

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread Willem Jiang
Sorry, the right url should be http://camel.apache.org/schema/spring/camel-spring-2.3.0.xsd Willem ankelee wrote: It was hard for me :-) Thanks. Claus Ibsen-2 wrote: On Thu, Jun 3, 2010 at 3:27 PM, ankelee wrote: Hi Willem That is not working. Can't even access that url in a browser.

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread ankelee
It was hard for me :-) Thanks. Claus Ibsen-2 wrote: > > On Thu, Jun 3, 2010 at 3:27 PM, ankelee wrote: >> >> Hi Willem >> >> That is not working. Can't even access that url in a browser. >> > > Well you can view all the XSD here > http://camel.apache.org/schema/spring/ > > So it was not t

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread Claus Ibsen
On Thu, Jun 3, 2010 at 3:27 PM, ankelee wrote: > > Hi Willem > > That is not working. Can't even access that url in a browser. > Well you can view all the XSD here http://camel.apache.org/schema/spring/ So it was not that hard to figure out there was a tiny typo in the url from willem > > > wi

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread ankelee
Hi Willem That is not working. Can't even access that url in a browser. willem.jiang wrote: > > The camel-spring-2.3.0.xsd is published into the apache camel web sit. > But the camel-spring.xsd is not updated with the latest > camel-spring-2.3.0.xsd. You can work around this issue by doing t

Re: Direct-route not shared across contexts?

2010-06-03 Thread Claus Ibsen
Hi Whats your runtime environment? And how do you start your app? Do you use OSGi or WAR etc? On Thu, Jun 3, 2010 at 2:28 PM, ankelee wrote: > > Perhaps I'm doing it wrong. > > I load a Spring context xml file that has two imports as such. > > > > > > The two camelcontext.xml files obvious

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread Claus Ibsen
On Thu, Jun 3, 2010 at 3:16 PM, Willem Jiang wrote: > The camel-spring-2.3.0.xsd is published into the apache camel web sit. > But the camel-spring.xsd is not updated with the latest > camel-spring-2.3.0.xsd. You can work around this issue by doing the below > change . > Ah we need Hadrian to upl

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread Willem Jiang
The camel-spring-2.3.0.xsd is published into the apache camel web sit. But the camel-spring.xsd is not updated with the latest camel-spring-2.3.0.xsd. You can work around this issue by doing the below change . ankelee wrote: http://www.springframework.org/schema/beans"; xmlns:xsi="htt

Re: Clustering with camel-quartz

2010-06-03 Thread Claus Ibsen
Hi If you have the app crash using kill -3 / -9 and then start it again and expect quartz to recover and it does not. Then I think you should ask at the Quartz user forum about this. And maybe you can create a plain example with pure Quartz to not pollute the example with Camel as the Quartz guys

How does glogin deal with the ClientLogin CAPTCHA request?

2010-06-03 Thread Dan Dubois
The Google ClientLogin manual http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html indicates that a CAPTCHA is sometimes used as a challenge. How does Camel's glogin deal with this? Best wishes, Dan -- View thi

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Willem Jiang
Hi, Maybe you should try to use GET method instead of the POST method to get the file. Willem Nav1771 wrote: Hi, I am a beginner with Camel. I am trying to download a file for which I have http path and trying to store the file in the local file system. I am using Camel 2.3.0. Please see t

Re: How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread ankelee
http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:jee="http://www.springframework.org/schema/jee"; xsi:schemaLocation=" http://www.springframework.org/schema/beans

How to use offline Camel Spring schema? (Camel 2.3)

2010-06-03 Thread ankelee
Claus answers this question partly in this thread: http://old.nabble.com/Using-local-camel-schema-on-server-with-no-internet-access-td28340101s22882.html#a28340101 But I can't get this to work. I'm trying to use some of the new options in the tag but both the ide and the compiler complains that

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Claus Ibsen
Hi Use the tracer to see what is going on http://camel.apache.org/tracer And does that remote HTTP server return valid data. On Thu, Jun 3, 2010 at 11:14 AM, Nav1771 wrote: > > Hi, >  I am a beginner with Camel. I am trying to download a file for which I have > http path and trying to store th

Re: Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
Hi, Any inputs on this. This maiy be fairly obvious question but I am new to Camel so any input would help . regards. Nav1771 wrote: > > Hi, > I am a beginner with Camel. I am trying to download a file for which I > have http path and trying to store the file in the local file system. I >

Re: Direct-route not shared across contexts?

2010-06-03 Thread ankelee
Perhaps I'm doing it wrong. I load a Spring context xml file that has two imports as such. The two camelcontext.xml files obviously holds a tag each. Each of contexts loads a identical route that they create their own instance of. These are configured differently with properties. Then I ge

Re: ExchangeTimedOutException: The OUT message was not received within: 20000 millis.

2010-06-03 Thread lekkie
I eventually figured this put. I had to wiretap the response. THanks. Claus Ibsen-2 wrote: > > Are you sending request/reply or fire and forget messaging over JMS? > > When you get that 20 sec timeout then its because Camel uses InOut and > expects a reply being send back to JMSReplyTo. > >

Re: Direct-route not shared across contexts?

2010-06-03 Thread Adrian Trenaman
Yikes - Guillaume, you're right - I misfired on this one. By default, each direct: endpoint should be 'isolated' within it's own camel context. So, if Andreas is experiencing something different, where direct: endpoints from different contexts are being shared 'cross-context' then this would b

Re: Direct-route not shared across contexts?

2010-06-03 Thread Guillaume Nodet
I think Andreas is looking for exactly the opposite. I don't think the goal of the direct: component was that endpoints would be shared across camel context (as that's what vm: has been written for). So i'm kinda tempted to consider that a bug. On Thu, Jun 3, 2010 at 13:27, Adrian Trenaman wrote:

Re: Direct-route not shared across contexts?

2010-06-03 Thread Adrian Trenaman
Fraid not! If you want to cross camel contexts in the same JVM, you could use the Camel VM (http://camel.apache.org/vm.html) component to do this. Or, you can take a look at using the NMR in SMX4 to achieve something similar. Hope that helps, Ade. On 03/06/2010 12:19, ankelee wrote: Hi Is

Direct-route not shared across contexts?

2010-06-03 Thread ankelee
Hi Is it possible to have direct endpoints that will not be shared across different camelcontexts in the same JVM? So that each camel context has its own instance of a direct route? -- View this message in context: http://old.nabble.com/Direct-route-not-shared-across-contexts--tp28766143p287661

Re: Getting exception when using retryUntil with concurrentConsumers

2010-06-03 Thread Srini97
If I use it below by removing threads() it is taking the messsages one by one even though there are concurrent consumers. from("jms-cif:queue:" + _notificationQueue+"?concurrentConsumers="+concurrentConsumersSize). process(processor) .onException(Exception.class).retryUntil(bean("myRetryBean")

Re: Clustering with camel-quartz

2010-06-03 Thread Ingo Düppe
Am 01.06.10 08:37, schrieb Claus Ibsen: > On Mon, May 31, 2010 at 6:48 PM, Ingo Düppe wrote: > >> I forgot to mention that I currently use version 2.2.0. >> >> > Can you create a small sample application that demonstrates this? Then > its much easier to look into it to see what / if we can

Re: java.lang.VerifyError:(class: org/apache/camel/model/ProcessorType, method: loop signature:

2010-06-03 Thread mevikasg
Thanks alot. I have posted a request for the plugin up gradation on Grails forum. Claus Ibsen-2 wrote: > > On Thu, Jun 3, 2010 at 10:44 AM, mevikasg wrote: >> >> Hi Claus, >> >> >> As you suggested to check the Camel version (because of ProcessorType >> error). >> >> I did update the Camel

Re: ExchangeTimedOutException: The OUT message was not received within: 20000 millis.

2010-06-03 Thread Claus Ibsen
Are you sending request/reply or fire and forget messaging over JMS? When you get that 20 sec timeout then its because Camel uses InOut and expects a reply being send back to JMSReplyTo. See http://camel.apache.org/event-message.html http://camel.apache.org/request-reply.html On Thu, Jun 3, 2010

Using CamelHttpComponent to download file

2010-06-03 Thread Nav1771
Hi, I am a beginner with Camel. I am trying to download a file for which I have http path and trying to store the file in the local file system. I am using Camel 2.3.0. Please see the code below. I am expecting that on running this route the file should be downloaded and moved to data2/s124 fol

Re: java.lang.VerifyError:(class: org/apache/camel/model/ProcessorType, method: loop signature:

2010-06-03 Thread Claus Ibsen
On Thu, Jun 3, 2010 at 10:44 AM, mevikasg wrote: > > Hi Claus, > > > As you suggested to check the Camel version (because of ProcessorType > error). > > I did update the Camel plugin in my grails application with ver 0.2 (after > updating) > > I found camel plugin's lib contains apache-camel-1.6.0

Re: Using properties file values with Camel Simple expression

2010-06-03 Thread Claus Ibsen
Hi You need Camel 2.3 for that !!! On Thu, Jun 3, 2010 at 11:06 AM, lekkie wrote: > > I am trying to insert a value from a properties file into a simple expression > but it keeps throwing an exception > > >         >         >                ${properties:my-host} >         >         > > > Se

Using properties file values with Camel Simple expression

2010-06-03 Thread lekkie
I am trying to insert a value from a properties file into a simple expression but it keeps throwing an exception ${properties:my-host} See exception below: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedT

Using properties file values with Camel Simple expression

2010-06-03 Thread lekkie
I am trying to insert a value from a properties file into a simple expression but it keeps throwing an exception ${properties:my-host} See exception below: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedT

Re: java.lang.VerifyError:(class: org/apache/camel/model/ProcessorType, method: loop signature:

2010-06-03 Thread mevikasg
Hi Claus, As you suggested to check the Camel version (because of ProcessorType error). I did update the Camel plugin in my grails application with ver 0.2 (after updating) I found camel plugin's lib contains apache-camel-1.6.0.jar. But, could't find apache-camel-2.x.x to resolve the issue.

ExchangeTimedOutException: The OUT message was not received within: 20000 millis.

2010-06-03 Thread lekkie
Hi Guys, I have this requirement where the source queue and destination queue are on separate brokers. See the config below: ${request-queue-url}