How to create custom IdempotentConsumer

2016-03-19 Thread siddhesh
Hi All, I am using Camel 2.15.2 and I came across issue CAMEL-9480. I cant upgrade my camel version at the moment because of other dependencies. So I was looking for a way to introduce custom IdempotentConsumer which will basically have logic like below @Override public boolean process(final Exc

Re: Exception from idempotentConsumer not propagating to onException

2016-01-05 Thread siddhesh
Thanks Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Exception-from-idempotentConsumer-not-propagating-to-onException-tp5775779p5775795.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Exception from idempotentConsumer not propagating to onException

2016-01-05 Thread siddhesh
Hi Claus, Sorry I dint mention Camel version. I am facing this issue on 2.10.0 and even on 2.15.2 -- View this message in context: http://camel.465427.n5.nabble.com/Exception-from-idempotentConsumer-not-propagating-to-onException-tp5775779p5775784.html Sent from the Camel - Users mailing list a

Exception from idempotentConsumer not propagating to onException

2016-01-04 Thread siddhesh
Hi All, I have camel route in which I am using idempotentConsumer. I got exceptionhandler added for the route. java.lang.Exception false

Issue with ProducerTemplate send. Null value going as String.

2015-12-13 Thread siddhesh
Hi All, I calling send method of ProducerTemplate with my endpoint as follows producerTemplate.send("abcd:addAttribute?operationName=execute@"+index+"&attributeKey=ERROR_CODE&attributeValue=${property.errorCode}", exchange); Later I decided to construct the endpoint uri separately as string as t

Re: Placeholder of Camel from tag is not getting updated with new values

2015-12-10 Thread siddhesh
Pals, is this the issue same as mentioned in defect CAMEL-9124 ? -- View this message in context: http://camel.465427.n5.nabble.com/Placeholder-of-Camel-from-tag-is-not-getting-updated-with-new-values-tp5774909p5774973.html Sent from the

Placeholder of Camel from tag is not getting updated with new values

2015-12-10 Thread siddhesh
Hi All, I have my publicAddress property defined in Spring XML and using it in Java DSL(Route builders). Value of 'publicAddress' comes from Web GUI. I was previously using Camel 2.10 and have switched to 2.15. Following code is used to create Route builders which has different public add

How to unmarshall payload using SOAP Dataformat

2015-06-27 Thread siddhesh
Hi Friends, I have created Soap webservice using CXF endpoint and CxfComponent. I am setting dataformat as payload in endpoint and making call. In my processor bean, I get CXFPayload object. I wanted to know how i can use SOAP is a Data Format to automatically un-marshall CXFPayload to desired o

RE: Difficulty in extracting data from CxfPayload

2015-06-23 Thread siddhesh
Guys, I got it working. Cheers. -- View this message in context: http://camel.465427.n5.nabble.com/Difficulty-in-extracting-data-from-CxfPayload-tp5768422p5768508.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Difficulty in extracting data from CxfPayload

2015-06-22 Thread siddhesh
Hi Stephen When I use Document document = exchange.getIn().getBody(Document.class); i see document object content as follows [#document: null] any additional changes that will fix this ? -- View this message in context: http://camel.465427.n5.nabble.com/Difficulty-in-extracting-data-from-CxfP

RE: Difficulty in extracting data from CxfPayload

2015-06-22 Thread siddhesh
Hi Siano, Thanks I tried this code String bodyStr = exchange.getIn().getBody(String.class); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder; builder = factory.newDocumentBuilder(); Document document = builder.parse(new InputSource(new StringReader(

Difficulty in extracting data from CxfPayload

2015-06-19 Thread siddhesh
Hi I have created soap webservice using CXFendpoint. I am trying to Mock ParlayX getLoaction functionality. I have wsdl and have generated required objects. My dataformat is payload. I am sending my input body as follows. http://schemas.xmlsoap.org/soap/envelope/"; xmlns:loc="http://www.csapi.or