Re: using TransactionErrorHandler with Camel and Karaf

2015-06-14 Thread yogu13
anyone ? -- View this message in context: http://camel.465427.n5.nabble.com/using-TransactionErrorHandler-with-Camel-and-Karaf-tp5768124p5768182.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ClassCastException in blueprint Route

2015-06-14 Thread yogu13
Hello John, The configuration seems to be good... Does your LocalConfigurationService has a getCurrentConfiguration method ? if yes then i hope its returning an instance which is of type com.example.services.configuration.ConfigurationService Regards, -Yogesh -- View this message in context:

Re: using TransactionErrorHandler with Camel and Karaf

2015-06-14 Thread Claus Ibsen
Hi You can do onException and handled = false, then the TX will still rollback but you can do certain tasks when the exception happens. Its the spring tx manager that is used, so you can use that with osgi. On Fri, Jun 12, 2015 at 7:07 AM, yogu13 wrote: > Hi, > > I went through earlier posts on

Re: Remove breadcrumbId from Rest Service Response Headers

2015-06-14 Thread Claus Ibsen
Hi You should be able to remove the header. Can you try adding a step after the removeHeader, eg And see if that works. On Wed, Jun 10, 2015 at 5:16 PM, Alex Soto wrote: > Hi there, > > Is there a way to remove the “breadcrumbId" header from the Rest Service > response? > > I am using Cam

Camel Kafka - java.lang.ClassCastException: java.lang.String cannot be cast to [B

2015-06-14 Thread Anton Hughes
Hi I'm trying to use the Camel Kafka producer, but am getting the below error. My camel route looks like this: .to("kafka:mykafkabroker:9092??topic=testtopic&serializerClass=kafka.serializer.StringEncoder"); Ive seen others who have the same error, and have resolved this by adding the "serialize

Re: Camel Kafka - java.lang.ClassCastException: java.lang.String cannot be cast to [B

2015-06-14 Thread Anton Hughes
I had a mistake in my route. Now however I am getting this error. I can see that this class is included in the maven dependency for kafka camel. Anyone know how to solve this? Caused by: java.lang.ClassNotFoundException: kafka.serializer.StringEncode from [Module "deployment.api.war:main" from S

Re: Camel Kafka - java.lang.ClassCastException: java.lang.String cannot be cast to [B

2015-06-14 Thread Anton Hughes
On Sun, Jun 14, 2015 at 11:19 PM, Anton Hughes wrote: > I had a mistake in my route. > > Now however I am getting this error. I can see that this class is included > in the maven dependency for kafka camel. > > Anyone know how to solve this > ah - it was a spelling mistake. Thanks

Using cxfrs producer with a dynamic endpoint from a metadata file

2015-06-14 Thread praneeth.purighalla
Hi All, I'm completely new to Camel. So please bear with this requirement of mine. I have a file that contains some metadata in XML. This metadata includes the URI of my external HTTP service along with authentication details to connect to the endpoint. I'm trying to build my camel route in such a

Re: Using cxfrs producer with a dynamic endpoint from a metadata file

2015-06-14 Thread praneeth.purighalla
Thanks Yogesh for your prompt reply. Actually, my code worked :) I was checking the outbox folder and it had metadata.xml so I thought it was the same input file. I didn't check the contents of the file earlier. It does contain response from my external service, only that the fileName is inherited

Re: DeadLetterQueue -- Access the object before shutDown

2015-06-14 Thread udaykumarjonna
Hi Claus , I'm using DeadLetterChannel .Please find my configuration On any exception in my code I'm handling the request to retryHandler -- View this message in context: http://camel.465427.n5.nabble.com/DeadLetterQueue-Access-the-object-before-shutDown-t

Re: using TransactionErrorHandler with Camel and Karaf

2015-06-14 Thread yogu13
Hello Claus, Sorry missed a tiny detail we are using Aries Blueprint instead of Spring...Please let me know if it would still work Regards, -Yogesh On Sun, Jun 14, 2015 at 9:13 PM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5768210...@n5.nabble.com> wrote: > Hi > > You can do onException and h

CronScheduled Route Policy is not working in cluster

2015-06-14 Thread sathiyaraja
Hi ., Can anyone help with cronscheduledouterpolicy in fuse 6.1 cluster. My camel file file looks like below., http://camel.apache.org/schema/spring";> The above is working in non clustured environment, but not works in clustred environment. Thanks in ada

Re: Removing namespaces from soap response using SoapOutInterceptor

2015-06-14 Thread sathiyaraja
Hi, You can do this by xsl transformation., PFB xsl for removing namespace from a xml message., http://www.w3.org/1999/XSL/Transform";> Regards, Sathiya -- View this message in context: http://camel.465427.n5.nabble.com/Removing-namespaces-from-soap-respons

Re: Using cxfrs producer with a dynamic endpoint from a metadata file

2015-06-14 Thread yogu13
Hello, Did you try using getOut().getBody() instead of getIn().getBody() for the cxf response? Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Using-cxfrs-producer-with-a-dynamic-endpoint-from-a-metadata-file-tp5768224p5768225.html Sent from the Camel - Use

null body after transform method exception

2015-06-14 Thread Hans Orbaan
Hello all, When an exception is thrown from a transform method I lose the content of the message body. Is that intentional or a bug? Because it does not happen when an exception is thrown from a bean call. .bean(ErrorBean.class, ErrorBean.METHOD) Vs. .transform().method(ErrorBean.class, Error

Re: Using cxfrs producer with a dynamic endpoint from a metadata file

2015-06-14 Thread yogu13
Glad things worked for you ... The other way you could try is by using Dynamic recipient list [1] for your cxfs endpoint instead of doing it via a processor. This way you could reduce on the boilerplate code and stick to camel's dsl Disclaimer: I haven't tried this with cxfrs :) [1] http://came

RE: null body after transform method exception

2015-06-14 Thread Hans Orbaan
Testcase (attachment was removed): package route; import org.apache.camel.Exchange; import org.apache.camel.LoggingLevel; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.test.junit4.CamelTestSupport; import org.fest.assertions.api.Assertion