Re: Flatpack Example

2012-05-21 Thread Chris Geer
Sorry Claus for the lack of details... - Camel 2.9.2 - Karaf 2.2.4 I did look at the unit tests and they matched what I had. You are correct though that there are some good examples in there. I did finally find my problem though. I am using a fixed length file and I had tried two thing: 1) Sett

Re: Flatpack Example

2012-05-21 Thread Claus Ibsen
Hi Just a quick suggestion. Have you looked at the unit tests of camel-flatpack? Often there is "good" examples there. Also when something doesn't work, mention the Camel version, and what runtime you use, eg Tomcat, ServiceMix etc. And especially with OSGi, loading resources on classpath can be

Re: Thread pool for Camelcontext

2012-05-21 Thread dj5483
Claus, I too am implementing a Camel (2.9.1) project on WebSphere (7.0.0.19). After reading the Camel Docs it was clear to me that I was supposed to implement the ThreadPoolFactory interface and declare a Spring Bean to allow Camel to wire in my implementation. After attempting to implement the T

Re: Improving the Documentation (Articles, Presentations, etc.)

2012-05-21 Thread Raul Kripalani
BTW - I realise I addressed Kai in the greeting, but when I say "you", I mean the entire dev community :D So please share your thoughts whenever you get a chance! On 21 May 2012, at 21:48, Raul Kripalani wrote: Hi Kai, Nice to meet you - being seeing lot of your work around ;) Overhauling the

Flatpack Example

2012-05-21 Thread Chris Geer
If there an example anywhere demonstrating how to use the flatpack component? I've been playing with it with very little success. I've got the very simple case working: This will create a message on the se

Re: Best practice to parse JSON response and retry if error

2012-05-21 Thread Nestor Urquiza
One way to solve this (successfully tested) would be using a bean encapsulating all the logic (http request, unmarshalling, testing for errors): //So we are probably better just building a bean that invokes the http service, analyze the response and throws Exception if error .setHeader("u

Re: Improving the Documentation (Articles, Presentations, etc.)

2012-05-21 Thread Raul Kripalani
Hi Kai, Nice to meet you - being seeing lot of your work around ;) Overhauling the Camel docs has also been in my mind for the past few days, so I just wanted to share my thoughts and collaborate in the adventure. Camel is a simple yet very powerful framework, but the docs don't really help to ge

Re: Issue: Choice not working

2012-05-21 Thread ebinsingh
Adding to the above post... I changed assert statement to the below, but still no luck (it should fail but it's not) *getMockEndpoint("mock:dataToParse").assertIsSatisfied();* Appreciate your help. Thanks & regards, Ebe -- View this message in context: http://camel.465427.n5.nabble.com/Issue-C

RE: netty questions

2012-05-21 Thread Eugeniu
Hi How does the connectTimeout and keepAlive parameters interact? I found a strange behavior when using these parameters in combination: When using this sequence - the message I should have gotten from the TCP connection is not present (reply string is null). ?textline=true&keepAlive=false&sync=

Re: Issue: Choice not working

2012-05-21 Thread ebinsingh
Thanks for pointing out. Now I've moved to camel version 2.9.2 and started getting exceptions. Makes lot of sense now and I've cleared that issue. Please can you also clarify the Mock issue I have. I have the below test method and am using "CamelSpringTestSupport". As I am setting the headers as

Re: Improving the Documentation (Articles, Presentations, etc.)

2012-05-21 Thread megachucky
Today, I had some time to add some structure to the articles. I am not really happy yet (because as Claus mentioned several articles are really old and outdated - so the release date of articles is also important), I will improve this when I find some more time. However, I think even the better str

Re: Issue: Choice not working

2012-05-21 Thread Claus Ibsen
Hi Make sure the simple expression is exactly as documented on the simple page. Also what version of Camel are you using? The simple language in 2.9 onwards have better syntax parser, so it catches illegal syntaxes and reports them to you. On Mon, May 21, 2012 at 5:18 PM, ebinsingh wrote: > H

Issue: Choice not working

2012-05-21 Thread ebinsingh
Hi All, I have the below route: * ${header.batchSize} == 2000 $'header.inputDataType' = 'TAP'

Re: CXF - REST service response

2012-05-21 Thread kafe
My pleasure ! -- View this message in context: http://camel.465427.n5.nabble.com/CXF-REST-service-response-tp5140445p5712907.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CXF - REST service response

2012-05-21 Thread wael
Dear Kafe I would like to thank you very much for your post, it helped me alot to create a restfull client from camel. I was trying with cxfrs:rsclient with no luck and alot of problems with the dependency between apache cxf and camel cxf. But your post was straight forward. Thank you. -- View

Re: Configure Camel to consume externally configured quartz jobs

2012-05-21 Thread Nestor Urquiza
@James the problem with JMX is distributed code. The Camel routes will be running in several Tomcat instances so it makes sense to use db persistence through Quartz especially if there are modules that are not related to Camel which can reschedule under certain conditions. The idea of having a Cam

Re: Configure Camel to consume externally configured quartz jobs

2012-05-21 Thread Nestor Urquiza
@Claus I don't think it is actually a bug but a design result. According to the documentation: > The component uses either a CronTrigger or a SimpleTrigger. If no cron > expression is provided, the component uses a simple trigger. If no > groupName is provided, the quartz component uses the Camel

Re: Create a new Camel component via Scala-Component-Archetype?

2012-05-21 Thread megachucky
I have create a Jira issue and added a patch already: https://issues.apache.org/jira/browse/CAMEL-5297 If there is still any problems or missing stuff, tell me... - Best regards, Kai Wähner Twitter: @KaiWaehner Email: kont...@kai-waehner.de Blog: www.kai-waehner.de/

Re: Configure Camel to consume externally configured quartz jobs

2012-05-21 Thread James Carman
You could probably use JMX to runtime-reconfigure the producers, right? On Sun, May 20, 2012 at 8:28 PM, Nestor Urquiza wrote: > Hi guys, > > How can I configure Camel to consume quartz jobs that are configured outside > of camel? > > I can start a persisted quartz consumer without problems. I ca

Re: Configure Camel to consume externally configured quartz jobs

2012-05-21 Thread Claus Ibsen
Hi The class cast exception sounds like a bug. Is it possible for you to create a unit test or small sample that demonstrates the bug, and then create a JIRA ticket with it attached? On Mon, May 21, 2012 at 2:28 AM, Nestor Urquiza wrote: > Hi guys, > > How can I configure Camel to consume quart

Re: mandatory attribute in the ConvertBodyTo Spring DSL ?

2012-05-21 Thread Claus Ibsen
What version of Camel are you using? On Mon, May 21, 2012 at 9:51 AM, Olivier Roger wrote: > Hello Christian, > > That is exactly what I needed to know. > In fact I had an error before the convertion. > > -- > View this message in context: > http://camel.465427.n5.nabble.com/mandatory-attribut

Re: mandatory attribute in the ConvertBodyTo Spring DSL ?

2012-05-21 Thread Olivier Roger
Hello Christian, That is exactly what I needed to know. In fact I had an error before the convertion. -- View this message in context: http://camel.465427.n5.nabble.com/mandatory-attribute-in-the-ConvertBodyTo-Spring-DSL-tp5710933p5712777.html Sent from the Camel - Users mailing list archive at