Re: catch error in producer endpoint

2009-10-13 Thread parasmk
Claus Ibsen-2 wrote: You cannot continue to the next process as there are NO data. You are trying to get some data from the remote FTP server but you cannot get data. Its like trying to route from a JMS queue in which you cannot connect to. And btw what do you want to happen in

Jetty asynchronus and parallel processing

2009-10-13 Thread SwenVogel
Hi, i want to receive data over an HTTP-POST request and immediately return, so the processing is done asynchronously. The client should receive a HTTP status code 200 without any response data. I have the following two routes: 1. The route that receives the data, set some simple properties,

Re: Jetty asynchronus and parallel processing

2009-10-13 Thread Claus Ibsen
On Tue, Oct 13, 2009 at 12:26 PM, SwenVogel swen.vo...@ypsystems.de wrote: Hi, i want to receive data over an HTTP-POST request and immediately return, so the processing is done asynchronously. The client should receive a HTTP status code 200 without any response data. I have the

Re: Jetty asynchronus and parallel processing

2009-10-13 Thread SwenVogel
Thats really easy! And is the combination of the seda route and thread DSL correct? -- View this message in context: http://www.nabble.com/Jetty-asynchronus-and-parallel-processing-tp25870376p25871863.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Jetty asynchronus and parallel processing

2009-10-13 Thread Claus Ibsen
On Tue, Oct 13, 2009 at 2:21 PM, SwenVogel swen.vo...@ypsystems.de wrote: Thats really easy! And is the combination of the seda route and thread DSL correct? The seda consumer supports concurrency so you can just do: from(seda:foo?concurrentConsumers=20).to(x) Then you do not need the

onException

2009-10-13 Thread jpcook
Hello, I was reading this page: http://camel.apache.org/exception-clause.html But I'm still not clear if you can have different exception policies for different configure methods in the same route? The different configure methods are reading from different seda queues so it seem from looking at

Re: Calling setHeader() after to()

2009-10-13 Thread Dragisa Krsmanovic
On Tue, 2009-10-13 at 06:13 +0200, Claus Ibsen wrote: On Mon, Oct 12, 2009 at 10:39 PM, Dragisa Krsmanovic dkrsmano...@plos.org wrote: I am trying to do something like: from(activemq:plos.pmc) .to(rnc:pmc-message.rnc) .setHeader(DOI).xpath(/ambraMessage/doi/text(), String.class)

Re: Is Camel JMX feature working ?

2009-10-13 Thread Dave Wallin
We are using Camel 2.0 with JDK 1.5_17 without any spring configuration (pure java). When the Camel context starts up it logs INFO: JMX enabled. Using InstrumentationLifecycleStrategy. Still, JConsole local processes is empty and we cannot connect using the URI either... Any ideas? Thanks. --

Camel 2.0.0 and bean binding

2009-10-13 Thread praveen.sharma
There is something amiss in using Camel 2.0.0 with bean binding. Again, the example shown below was working with 1.6.1 Camel version, but Camel 2.0.0 or 2.0-M3 gives following error Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:

Re: Camel 2.0.0 and bean binding

2009-10-13 Thread Stan Lewis
Did you try method instead of methodName? Looks like it might have been renamed in 2.0... On Tue, Oct 13, 2009 at 1:47 PM, praveen.sharma praveen.sha...@ll.mit.eduwrote: There is something amiss in using Camel 2.0.0 with bean binding. Again, the example shown below was working with 1.6.1

Re: Bean endpoint in a route is holding reference to the last used methodName and does not invoke Camel's Bean binding

2009-10-13 Thread Stan Lewis
On Sat, Oct 10, 2009 at 4:28 PM, sasidharm sasi.mukkam...@gmail.com wrote: I am trying to upgrade to Camel 2.0 and running into a weird issue. Say i have the following route: route from uri=jms:jms/queue/ process ref=someProcessor / to uri=bean1 / /route Here i am

Re: Camel 2.0.0 and bean binding

2009-10-13 Thread praveen.sharma
Yup, its method instead of methodName. I stared at it for a long while and still missed the renaming the bean parameters:) praveen.sharma wrote: There is something amiss in using Camel 2.0.0 with bean binding. Again, the example shown below was working with 1.6.1 Camel version, but Camel

Re: modify message before delivering to Dead Letter Queue

2009-10-13 Thread terminator_007
hey, thanks for the suggestion but I coudnt understand it... can you please elaborate a little... thanks a ton. Claus Ibsen-2 wrote: Hi Maybe we should let Camel add the endpoint a producer is sending to. Then when you route using .to(xxx) then Camel will add a header such as

Camel Mail Component: | in email causes message to fail

2009-10-13 Thread tide08
It looks like there is minor bug in regex used in MailBinding.java, it causes | to act as delimiter, splitting email address into 2 parts. For ex: Using email address as - first|l...@test.com causes it to split into two parts: 1) first 2) l...@test.com | is acceptable character in email as

Re: Is Camel JMX feature working ?

2009-10-13 Thread tide08
I believe you are just trying to use platform mbean than try setting below jvm parameter which is required for Java 5 only: -Djava.rmi.server.hostname=[your Ip] Thanks! Dave Wallin wrote: We are using Camel 2.0 with JDK 1.5_17 without any spring configuration (pure java). When the Camel

Re: Bean endpoint in a route is holding reference to the last used methodName and does not invoke Camel's Bean binding

2009-10-13 Thread Willem Jiang
Hi Stan, This issue[1] has been fixed in the camel 2.1.0-SNAPSHOT :) [1] http://issues.apache.org/activemq/browse/CAMEL-2060 Willem Stan Lewis wrote: On Sat, Oct 10, 2009 at 4:28 PM, sasidharm sasi.mukkam...@gmail.com wrote: I am trying to upgrade to Camel 2.0 and running into a weird

Re: Calling setHeader() after to()

2009-10-13 Thread Claus Ibsen
On Tue, Oct 13, 2009 at 6:54 PM, Dragisa Krsmanovic dkrsmano...@plos.org wrote: On Tue, 2009-10-13 at 06:13 +0200, Claus Ibsen wrote: On Mon, Oct 12, 2009 at 10:39 PM, Dragisa Krsmanovic dkrsmano...@plos.org wrote: I am trying to do something like:  from(activemq:plos.pmc)    

Re: Is Camel JMX feature working ?

2009-10-13 Thread Claus Ibsen
On Tue, Oct 13, 2009 at 7:17 PM, Dave Wallin david_wal...@kaltire.com wrote: We are using Camel 2.0 with JDK 1.5_17 without any spring configuration (pure java).  When the Camel context starts up it logs INFO: JMX enabled. Using InstrumentationLifecycleStrategy.  Still, JConsole local

Re: onException

2009-10-13 Thread Claus Ibsen
On Tue, Oct 13, 2009 at 6:13 PM, jpcook jonathan.c...@erars.plus.com wrote: Hello, I was reading this page: http://camel.apache.org/exception-clause.html But I'm still not clear if you can have different exception policies for different configure methods in the same route? The different

Re: Camel Mail Component: | in email causes message to fail

2009-10-13 Thread Claus Ibsen
Hi Could you create a JIRA ticket for this bug? On Wed, Oct 14, 2009 at 2:06 AM, tide08 sachin2...@yahoo.com wrote: It looks like there is minor bug in regex used in MailBinding.java, it causes | to act as delimiter, splitting email address into 2 parts. For ex: Using email address as -