Re: Converter not getting called

2014-02-11 Thread yagyesh
camel version 2.11.0. In logs i can see Caused by: org.apache.camel.RuntimeCamelException Caused by: java.lang.IllegalAccessException a On Wed, Feb 12, 2014 at 3:59 AM, Christian Mueller [via Camel] < ml-node+s465427n5747146...@n5.nabble.com> wrote: > Which version do you use? > What's th

Re: Camel Stomp Component with Spring DSL

2014-02-11 Thread Ed Spree
Thanks for the response. Yes, it seems to work with the proper libraries after all. Appreciate the help. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Stomp-Component-with-Spring-DSL-tp5747056p5747139.html Sent from the Camel - Users mailing list archive at Nabble.c

Re: Problem with tracing streams (and stream caching)

2014-02-11 Thread Joni Nousiainen
Thanks for the tip! I tried upgrading to the latest version of JDK 7 (1.7.0_51). Unfortunately this had no effect on the problem. BR, Joni On 11.2.2014 23:36, Christian Müller wrote: First of all, you should upgrade to a more recent Java version. Best, Christian

Re: Camel swallows Error

2014-02-11 Thread Rural Hunter
2.12.2 于 2014/2/12 11:31, Willem Jiang 写道: The default value is true, BTW, which version of Camel are you using? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.c

Resume an Endpoint in a Route

2014-02-11 Thread eswar
Hi - In the below route, I have interceptors defined which gets invoked before each of these endpoints to enrich the message. from {file:location} to validate to DBLoad to processcomplete My requirement is that validation should complete as soon as file arrives but file load in Endpoint "DBLoad"

Re: Camel swallows Error

2014-02-11 Thread Willem Jiang
The default value is true,  BTW, which version of Camel are you using? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo

Re: Camel swallows Error

2014-02-11 Thread Rural Hunter
hmm...I didn't set it manually. Is that default to false? 于 2014/2/12 10:21, Willem Jiang 写道: I just checked the code and found an interesting thing. public class DefaultSpringErrorHandler implements ErrorHandler { private final LoggingExceptionHandler handler; private final boolean

Re: Camel swallows Error

2014-02-11 Thread Willem Jiang
I just checked the code and found an interesting thing. public class DefaultSpringErrorHandler implements ErrorHandler {     private final LoggingExceptionHandler handler;     private final boolean logStackTrace;     public DefaultSpringErrorHandler(Class owner, LoggingLevel level, boolean logS

Re: Custom IdempotentConsumer/Processor

2014-02-11 Thread Sam Adams
Unfortunately its not the repository I've extended, its the consumer itself. On Feb 11, 2014 10:30 PM, "Christian Müller" wrote: > Instead of > class="org.apache.camel.processor.idempotent.MemoryIdempotentRepository"/> > > you should configure your own IdempotentRepository. > > Best, > > Christi

RE: Set directory at runtime with file:

2014-02-11 Thread Ravindra.Godbole
Hi You can add routes dynamically once Camel starts, though dynamic from is not possible. Look at the following thread for more inputs. http://stackoverflow.com/questions/10451444/add-camel-route-at-runtime-in-java -Ravi From: mister blinky [misterbli.

Re: Groovy compiled scripts cache execution context

2014-02-11 Thread Christian Müller
Can you provide a simple test case so that we can more easily dig into it and fix it? Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/ch

Re: Custom IdempotentConsumer/Processor

2014-02-11 Thread Christian Müller
Instead of you should configure your own IdempotentRepository. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/55

Re: Converter not getting called

2014-02-11 Thread Christian Müller
Which version do you use? What's the result if you execute: template.requestBodyAndHeader("direct:aa",null,"ab",header); Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Mem

Re: Upgrade Jsch to 0.1.50

2014-02-11 Thread Christian Müller
Done. Upgraded in master, camel-2.12.x and 2.11.x. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Tue

Re: Java Route Not Finishing

2014-02-11 Thread kraythe .
I would attach a tracer to the route and walk through its execution. Just google "apache Camel tracer" *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39

Re: Custom IdempotentConsumer/Processor

2014-02-11 Thread Sam Adams
Hi, Unless I am mistaken this just adds a the standard IdempotentConsumer to the route? This would remove messages with duplicate keys indefinatly. I only want to remove them while the duplicate message is being processed. Or am I missing something? Thanks, Sam On 11 February 2014 21:43, Chri

Re: Custom IdempotentConsumer/Processor

2014-02-11 Thread Christian Müller
See [1] for details. http://camel.apache.org/schema/spring";> messageId [1] http://camel.apache.org/idempotent-consumer.html Best, Christian - Software Integration Specialist Apache Mem

Re: Problem with tracing streams (and stream caching)

2014-02-11 Thread Christian Müller
First of all, you should upgrade to a more recent Java version. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551

Re: Upgrade Jsch to 0.1.50

2014-02-11 Thread Christian Müller
I'm working on it... Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Tue, Feb 11, 2014 at 10:30 PM, Ch

Re: Upgrade Jsch to 0.1.50

2014-02-11 Thread Christian Müller
Yep, it's in maven central: http://search.maven.org/#artifactdetails|org.apache.servicemix.bundles|org.apache.servicemix.bundles.jsch|0.1.50_1|bundle Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel commit

Re: how to pass parameter to camel custom datafotmat?

2014-02-11 Thread Christian Müller
Setting the parameter as Exchange properties or Message headers is the right way. The data format has access to these and can change the behavior based on this. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache C

Groovy compiled scripts cache execution context

2014-02-11 Thread florin
Trying to use a Groovy script inside a Camel (version 12.2.1) validator I encountered the problem that the validator returns always the result form first evaluation (from first message) for subsequent messages. By looking into the code (/org.apache.camel.builder.script.ScriptBuilder/) I noticed tha

Re: Set directory at runtime with file:

2014-02-11 Thread mister blinky
thanks I appreciate the definitive reply !!! My workaround is to construct a new route (as you imply) and to pass the header value into the constructor for the route. Is dynamic from likely to become a camel feature? again, thx. -- View this message in context: http://camel.465427.n5.nabble.

Re: Set directory at runtime with file:

2014-02-11 Thread Claus Ibsen
Hi The from in a Camel route can only be configured once prior to the route being started etc. You cannot change that at runtime during the route is running. There is no dynamic from. On Tue, Feb 11, 2014 at 7:23 PM, mister blinky wrote: > I am using Camel 2.12.2. > > I assume this is support

Converter not getting called

2014-02-11 Thread yagyesh
Hi All, I am using camel to call a restful webservice. I am calling the requestBodyandheader method of producerTemplate and expecting a response of type JSONarray template.requestBodyAndHeader("direct:aa",null,"ab",header,JSONArray.class); A converter is also defined to manipulate the response.

Set directory at runtime with file:

2014-02-11 Thread mister blinky
I am using Camel 2.12.2. I assume this is supported, but I've been looking and looking all day and found nothing. I load properties and apply them to generic routes. All the route's particulars -- the URI -- are defined in the properties file. The route knows how to look up its properties becau

Re: Problem in mqtt Component

2014-02-11 Thread Robert Davies
The mqtt client does (or should) support publishing - the polling feeds is the type of consumption - a poll as opposed to asynchronous delivery from the underlying matt-client implementation Could you raise a jira (with a test case) so we can track the issue ? thanks, Rob On 11 Feb 2014, at 18:

Re: Problem in mqtt Component

2014-02-11 Thread Zadko
I am working on doing the exact same thing; consuming from a topic and publishing to another. The consuming works fine however nothing gets published. I was made aware of the following note of the doc http://camel.apache.org/mqtt.html Note: The component curr

Custom IdempotentConsumer/Processor

2014-02-11 Thread Sam Adams
Hi, I want to extend the IdempotentConsumer to only deny duplicated while the duplicate message is being processed. My plan was to add an additional Synchronization that removed the messageId from the repository when the message has finished processing. However I can't find a simple example of ho

Re: Customize http ports & change "/cxf" to "/" for different services hosted on Fuse container

2014-02-11 Thread Aki Yoshida
If no other services are running under different context at the same port, can you just set the cxf's servlet context to "/" to make the cxf services accessible at that root path context? 2014-02-10 22:25 GMT+01:00 lkrao31 : > Hello All, > > We have a requirement where in we have multiple services

Re: File component include and sortBy together

2014-02-11 Thread Paul Anderson
That worked! And, thanks for the almost instantaneous response. -- View this message in context: http://camel.465427.n5.nabble.com/File-component-include-and-sortBy-together-tp5747115p5747117.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File component include and sortBy together

2014-02-11 Thread Claus Ibsen
Try setting eagerMaxMessagesPerPoll=false On Tue, Feb 11, 2014 at 2:27 PM, Paul Anderson wrote: > I'm using Camel 2.10.1 and the Java DSL. > > I have a route that begins by polling a directory. The from() has an > include parameter to only include files with a certain file extension and > also a

File component include and sortBy together

2014-02-11 Thread Paul Anderson
I'm using Camel 2.10.1 and the Java DSL. I have a route that begins by polling a directory. The from() has an include parameter to only include files with a certain file extension and also a sortBy=file:name to sort the files. When I start the route, it does select only the files matching the i

Re: Performance degradation on consumer side when switching Camel from 2.11.0 to 2.12.1v

2014-02-11 Thread Rosen Spasov
It seems the performance regression is caused by a change triggered due to this defect: CAMEL-6541 . The excessive copy of message headers seems to be causing ~10% degradation. Any ideas how to overcome this? -- View this message in context:

Re: Upgrade Jsch to 0.1.50

2014-02-11 Thread Bengt Rodehav
I think Willem Jiang has done this in the past. /Bengt 2014-02-11 13:01 GMT+01:00 Bengt Rodehav : > Normally you send a request to the Servicemix people and ask them to > OSGi:fy Jsch. At least that's how it's been done before. > > /Bengt > > > 2014-02-11 11:27 GMT+01:00 Claus Ibsen : > > I thi

Re: Upgrade Jsch to 0.1.50

2014-02-11 Thread Bengt Rodehav
Normally you send a request to the Servicemix people and ask them to OSGi:fy Jsch. At least that's how it's been done before. /Bengt 2014-02-11 11:27 GMT+01:00 Claus Ibsen : > I think jsch 0.1.50 does not work in OSGi. And therefore we do not > upgrade until it works also in OSGi. > > On Tue, F

Re: Cross war comms using direct-vm and cxf

2014-02-11 Thread Claus Ibsen
On Tue, Feb 11, 2014 at 9:43 AM, Mandy Warren wrote: > Thanks very much Claus & Dan for replying - Dan I will take a look at what > you suggest regarding local transport and mail you on the cxf user group if I > have further questions (which is very likely :-)) > > Claus - I'd really appreciate

Re: Upgrade Jsch to 0.1.50

2014-02-11 Thread Claus Ibsen
I think jsch 0.1.50 does not work in OSGi. And therefore we do not upgrade until it works also in OSGi. On Tue, Feb 11, 2014 at 11:24 AM, Bengt Rodehav wrote: > Since the discussions have started about a new release of Camel, I checked > the version of Jsch used. Currently Camel uses version 0.1.

Upgrade Jsch to 0.1.50

2014-02-11 Thread Bengt Rodehav
Since the discussions have started about a new release of Camel, I checked the version of Jsch used. Currently Camel uses version 0.1.49 which is rather old (from 2012-10-11). The latest version is 0.1.50 (from 2013-05-09). One of the bugs fixed has to do with a "verify" error on Java7u6 (and later

how to pass parameter to camel custom datafotmat?

2014-02-11 Thread viral.patel69
I am new to camel i have implemented custom dataformat *Now i want to use custom property in marshel or unmarshal method.* Is this possible to do this in camel? please give example if there is way. My custom dataformat code is as follows package com.camel.spring.test.dataFormat; import groo

Re: Cross war comms using direct-vm and cxf

2014-02-11 Thread Mandy Warren
Thanks very much Claus & Dan for replying - Dan I will take a look at what you suggest regarding local transport and mail you on the cxf user group if I have further questions (which is very likely :-)) Claus - I'd really appreciate it if you could send me a sample camel route which shows how t

Re: Camel swallows Error

2014-02-11 Thread Rural Hunter
Sorry for late response. I was in vacation. I ran your test and checked the stack trace output and found some difference with the one I got problem. Stacktrace with your test: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: Hello