Logback used with Apache Camel

2014-01-22 Thread amrut
Hi,I see my project working fine before i add logback core and classic jars into the camel project, but I get lot warning messages and Exceptions similar to below after adding the logback jars-can any body tell me what are the extra jars that I am suppose to remove / add??what is it exactly promtin

RE: problem trying to propagate exceptions from within enrich() and recipientList()

2014-01-22 Thread Elvio Caruana (ecaruana)
To answer my own question, it looks like the problem with the "missing" exceptions is the split() usage further up the routing chain - which from previous posts it looks like these need to be handled manually via the aggregation strategy implementations. Elvio -Original Message- From:

Re: Questions about cxfrs

2014-01-22 Thread Sergey Beryozkin
The stack trace suggests that JacksonJsonProvider did have a thread local context representing JAX-RS Providers injected into it at the registration time but at the invocation time no thread-local entry has been added to it and hence NPE. I have a lot of tests in CXF where client-side providers

Re: Questions about cxfrs

2014-01-22 Thread Sergey Beryozkin
Hi, sure, I only referenced Jettison as a possible alternative. I think Jackson is picked up, Jettison only works, as you mentioned, with JAXB sending the write events to it, and as I understand you've no XMLRootElement/etc added to the data beans Sergey On 21/01/14 21:14, David wrote: Comment

Property Wiring in camel-Blueprint

2014-01-22 Thread Muhzin
Hi all, While trying to wire the a property in my blueprint.xml i got the following error. blueprint.xml Error : Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find property descriptor setRegion on class com.amazonaws.serv

Re: Property Wiring in camel-Blueprint

2014-01-22 Thread Claus Ibsen
Hi Try without the set, eg On Wed, Jan 22, 2014 at 12:09 PM, Muhzin wrote: > Hi all, > > While trying to wire the a property in my blueprint.xml i got the following > error. > > > blueprint.xml > > class="com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider"/> > > > >

Re: Property Wiring in camel-Blueprint

2014-01-22 Thread Muhzin
HI, Thanks. tried it and saw that AmazonWebServiceClient setRegion needed a value of Region class so I modified it. Still getting error. modified blueprint : bean id="credentialProvider" class="com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider"/>

Re: Property Wiring in camel-Blueprint

2014-01-22 Thread Muhzin
Hi, How can i refer to a value in an enum in the blueprint, for eg, in this case We need to specify the member of Regions enum given below to Region bean. /* * Copyright 2013-2013 Amazon Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use

Re: Property Wiring in camel-Blueprint

2014-01-22 Thread Martin Stockhammer
Hello, try something like this: Greetings Martin Am 22.01.2014 12:40, schrieb Muhzin: > Hi, > How can i refer to a value in an enum in the blueprint, for eg, in this > case We need to specify the member of Regions enum given below to Region > bean. > > > /* > * Copyright 2013-20

Re: Property Wiring in camel-Blueprint

2014-01-22 Thread Muhzin
Thanks Martin Stockhammer and Claus Ibsen, it worked with factory method. On Wed, Jan 22, 2014 at 6:39 PM, Martin Stockhammer < m.stockham...@science-computing.de> wrote: > Hello, > > try something like this: > class="com.amazonaws.regions.Regions" > factory-method="v

Re: Questions about cxfrs

2014-01-22 Thread David
I can create a test project. How would I get it to you, email to the list as attachment? Or would it be better to open a JIRA, maybe? On Wed, Jan 22, 2014 at 5:19 AM, Sergey Beryozkin wrote: > The stack trace suggests that JacksonJsonProvider did have a thread local > context representing JAX-R

Re: Questions about cxfrs

2014-01-22 Thread Sergey Beryozkin
Hi, On 22/01/14 14:20, David wrote: I can create a test project. How would I get it to you, email to the list as attachment? Or would it be better to open a JIRA, maybe? Can you please open a JIRA and attach a test project there Many thanks Sergey On Wed, Jan 22, 2014 at 5:19 AM, Sergey Bery

How to set value for shutdownRunningTask for a Route in blueprintDSL?

2014-01-22 Thread nono
How to set value for shutdownRunningTask for a Route in blueprintDSL? 1000 Any hints will be more than welcom! Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-value-for-shutdownRunningTask-for

Re: Bug in LevelDB aggregator? NPE when completionSize 1

2014-01-22 Thread Stephan Burkard
OK I created CAMEL-7146 and attached a small example project. If I feel very self-confident, I will have look and try to fix the bug :-) Stephan On Tue, Jan 21, 2014 at 4:28 PM, Claus Ibsen wrote: > Hi > > Yeah you are welcome to raise a JIRA. > And as we love contributions, a bug fix is app

convert attachment to base64

2014-01-22 Thread Ronny Aerts
Hello, I have a camel component written in java. At a certain point, I need to convert the content of an attachment (or body) to a base64 encoding string. Can this be done with the camel base64 dataformat? And if yes, how do I do this in java? -- Kind regards, Ronny Aerts

Re: LevelDB and Route-Tests

2014-01-22 Thread Stephan Burkard
OK, what I found out until now: - All test classes of the Camel LevelDB component contain only 1 Test - The POM of the component contains a surefire config "pertest" => what means the same as "always" => what means "fork for each test-class" (yes, the term "pertest" is very confusing) Therefo

Re: Questions about cxfrs

2014-01-22 Thread David
See https://issues.apache.org/jira/browse/CAMEL-7147 On Wed, Jan 22, 2014 at 10:58 AM, Sergey Beryozkin wrote: > Hi, > > On 22/01/14 14:20, David wrote: > >> I can create a test project. How would I get it to you, email to the list >> as attachment? Or would it be better to open a JIRA, maybe? >

Camel 2.5.0 for Cygwin/UNIX

2014-01-22 Thread rjarchuleta
Hello. I am wanting to learn how to use Camel. I got a copy of "Camel in Action", which directed me to download Camel 2.5.0 for Cygwin/UNIX. I downloaded the compressed file (apache*.tar.gz) and decompressed the file using 7Zip and then gzip (upon trying, again). Using "tar -xvf" after that r

Re: Camel 2.5.0 for Cygwin/UNIX

2014-01-22 Thread Claus Ibsen
Hi Camel 2.5.0 was the latest Camel release when the book was published. We have since keep the source code for the book up to date with all the Camel releases. So I suggest to download the latest 2.12.2 and the book source code for that version https://code.google.com/p/camelinaction/ http://cam

Re: convert attachment to base64

2014-01-22 Thread Claus Ibsen
Hi The data format works on the message body content only. If you want to encode some attachments only. I suggest to write a piece of java code that does that. You can use commons-codec for the base64. But I think in some of the newer JDKs its out of the box. On Wed, Jan 22, 2014 at 5:34 PM, Ron

Re: Bug in LevelDB aggregator? NPE when completionSize 1

2014-01-22 Thread Claus Ibsen
On Wed, Jan 22, 2014 at 5:14 PM, Stephan Burkard wrote: > OK I created CAMEL-7146 and attached a small example project. > > If I feel very self-confident, I will have look and try to fix the bug :-) > Ah good. Its great to have a goal. And if you manage to fix your first bug, then please help wit

Re: How to set value for shutdownRunningTask for a Route in blueprintDSL?

2014-01-22 Thread Claus Ibsen
Hi Is there any problem? You should be able to set the value like that, eg just like in spring xml also. If not what Camel version do you use? And do you see any error or the likes? On Wed, Jan 22, 2014 at 4:54 PM, nono wrote: > > How to set value for shutdownRunningTask for a Route in blueprin

Dead letter queue and onException

2014-01-22 Thread bocamel
It seems that whenever an error is caught by onException, regardless whether handled is set to true or false, the failed message would not be written to the dead letter queue. Here is a sample project to demonstrate this: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.

Re: Logback used with Apache Camel throws so many irrelevant Exceptions

2014-01-22 Thread amrut
can anyone help me on this? - Thanks Amrut Malaji malaji.am...@gmail.com -- View this message in context: http://camel.465427.n5.nabble.com/Logback-used-with-Apache-Camel-tp5746335p5746363.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Questions about cxfrs

2014-01-22 Thread David
I tried using org.apache.cxf.jaxrs.provider.json.JSONProvider as the JSON provider instead of JacksonJsonProvider, and that results in an exception being thrown, telling me that no message body reader was found for my class. I'm using the same test case that's attached to the JIRA, just with a diff

Re: Apache Camel and Jboss FUSE IDE

2014-01-22 Thread gadido30
Thank You Do I need to Install both Eclipse and Maven? Do I need to use servicemix? I found some blog about, but I am not sure its updated: http://shoosthuizen-integration.blogspot.co.il/2011/02/beginners-guide-to-apache-camel-with_28.html Gadi -- View this message in context: http://camel.

Re: How to set value for shutdownRunningTask for a Route in blueprintDSL?

2014-01-22 Thread nono
Thanks for the reply I need to set timeout for shutdownRunningTask i thought below value is only for from and to endpoints but not for shutdownRunningTask 1000 -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-value-for-shutdownRunningTask-for-a-Route-in-blueprint

Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-22 Thread dinesh19aug
Hi, I see that this question has been asked a number of times but none of post helped or had a conclusive solution. I am splitting a message and then aggregating it using Aggregator2. The code was throwing exception because oldExchange was always null. So to test I designed a small code. I read

Camel mock:end

2014-01-22 Thread contactreji
Hi All I was using mock component as a sink element in one of the stubs i had created representing a destination system. Once pushed to mock:end, it is not used by any assertions statements / logic. *I wanted to know if the exchanges pushed to mock:end component will stay in memory or is the exc

Leverage camel to abstract services from jms and http bindings and scalability

2014-01-22 Thread Maninder Batth
In my company we are starting to use web services. My plan is to provide access to services via 2 protocols, http and jms. Any external access (clients outside company network) to services will be typically via http and json through a restful URL, but internally if the service needs to invoke anoth

Re: Apache Camel and Jboss FUSE IDE

2014-01-22 Thread Sanjay Bhattacharya
If you use Fuse IDE, you do not need to install Eclipse and configure Maven plugin on top of it. It's done for you. You can use either ServiceMix or Red Hat JBoss Fuse runtime to deploy your routes. Your routes can also be run without deploying it to an OSGI container. You can use Spring to bootstr

Re: Camel mock:end

2014-01-22 Thread Charles Moulliard
Can you show us please your Camel route ? Have you created a Camel Unit Test to verify that the mock component receive the camel exchange and that the info is logged ? BTW, why do you use mock component instead of a bean, log processors ? On Thu, Jan 23, 2014 at 3:36 AM, contactreji wrote: > Hi

Re: Dead letter queue and onException

2014-01-22 Thread Charles Moulliard
Can you move the DLC definition inside the please and make a test ? On Wed, Jan 22, 2014 at 8:19 PM, bocamel wrote: > It seems that whenever an error is caught by onException, regardless > whether > handled is set to true or false, the failed message would not be written to > the dead letter

Re: Apache Camel and Jboss FUSE IDE

2014-01-22 Thread gadido30
Thank You, sorry about my newbie question , I still don't know what to do: Do I need to run ActiveMQ with Camel Core and then add Maven Project with camel and activemq project? I will be glad to know what should I run for using Fuse IDE + Camel + ActiveMQ Gadi -- View this message in context

I got weird problem with aggregator

2014-01-22 Thread nono
I got weird problem with jdbc aggregator , could it be my aggregate method problem? I mean should i use Object instead of Map ? The problem does not happen often public Exchange aggregate(Exchange oldEx, Exchange newEx) { Map newBody = newEx.getIn().getBody(Map.class); ArrayLis

Re: How to set value for shutdownRunningTask for a Route in blueprintDSL?

2014-01-22 Thread nono
ok i got it -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-value-for-shutdownRunningTask-for-a-Route-in-blueprintDSL-tp5746347p5746366.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel 2.5.0 for Cygwin/UNIX

2014-01-22 Thread rjarchuleta
Thank you very much for your response, Klaus. I did just that and have the exact same problem. Suggestions? - Rich - On Wed, Jan 22, 2014 at 11:52 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5746357...@n5.nabble.com> wrote: > Hi > > Camel 2.5.0 was the latest Camel release when the book w

Re: Camel 2.5.0 for Cygwin/UNIX

2014-01-22 Thread Claus Ibsen
On Wed, Jan 22, 2014 at 8:13 PM, rjarchuleta wrote: > Thank you very much for your response, Klaus. I did just that and have the > exact same problem. > If you are on windows then download the .zip file. If you are on unix or mac then you should download the .tar instead. Are you sure you down