File Component - Implementing onCompletionExceptionHandler for older versions

2016-01-06 Thread calyan.bandi
Hi, Below is the warning that is received due to an exception at any time during processing of a file. This basically does a rollback of the entire file and it starts to read again. WARN thread #0 - [GenericFileOnCompletion] Rollback file strategy:

Re: Camel Stream caching unable to capture the entire stream

2015-12-16 Thread calyan.bandi
Hi, I found the anwer to the problem in apache cxf forums. http://cxf.547215.n5.nabble.com/How-to-increase-the-max-size-of-a-REST-response-td563077.html This is more of a issue in the CXF component than camel. But still for referene, i am sharing this information. At the server side, we saw

Camel Stream caching unable to capture the entire stream

2015-12-14 Thread calyan.bandi
Hi, I have a camel route which invokes a webservice, and tries to processes the response. I am using cxfrs component for the invocation. The response i am receiving is very huge and hence most of the content is removed from the end. To remedy this, i am using stream caching -

How do you define the camel ProducerTemplate?

2015-11-26 Thread calyan.bandi
Hi, I have been going through the redhat documentation for camel and see that the definiton of a ProducerTemplate is described as "The producer template supports a variety of different approaches to invoking producer endpoints. There are methods that support different formats for the request

Re: How do I pass on my query parameters?

2015-11-26 Thread calyan.bandi
Hi, The query parameters does not directly get added as headers to your camel exchange. They will be added as key value pairs to the exchange header "CamelHttpQuery" and "CamelHttpPath". Please take a look at my post to see how it works.

Re: file component - file producer - setting file permissions

2015-11-19 Thread calyan.bandi
Thank you claus. It works as expected. Regards, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/file-component-file-producer-setting-file-permissions-tp5774036p5774100.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Spring-ws response when using split/aggregate

2015-11-19 Thread calyan.bandi
Hi, You may need to provide the reply aggregation strategy in the split() method itself. It should be something like below. Also i doubt that the MEP needs to be set before splitting. split(new MyExpression(), new SoapAttachmentAggregationStrategy()); I recently worked on a

file component - file producer - setting file permissions

2015-11-18 Thread calyan.bandi
Hi, I have a requirement where in my route creates a file and writes some data into it. The file is getting created successfully with default permissions which is 0600. I want the file permissions to be changed to 0777 so that applications running for different users can also have their hands on

Re: How to read XML Payload

2015-11-06 Thread calyan.bandi
Hi, Thanks everyone for giving their suggestions. I was able to solve this using xslt component in a camel-loop . I am giving the route here just for your reference: count(/PricePlans/Body/customer)

Re: How to read XML Payload

2015-11-04 Thread calyan.bandi
Hi Henry, I tried both the options XPath and tokenize. But they didn't give me the desired results. The route is defined as below: /PricePlans/Body/customer The output that i receive from the XPath split is only the customer tag as shown below. ... I need the meta-data information

How to read XML Payload

2015-11-03 Thread calyan.bandi
Hi, Could someone please provide me the syntax for reading the XML payload with only the relevant tags. My input XML contains data as below: ... I need to split the input XML and do custom processing for each individual customer. The XML after splitting

Re: How to access payload from REST 404 reply in cxfrs?

2015-11-03 Thread calyan.bandi
Hi, I am not sure if its works, but you can try enabling the option streamCache on the route from which the web service is invoked. When using cxfrs component with trace/debug enabled the payload (stream) received from server is flushed once it is displayed - be it in logs or in your application.

Bindy dataformat usage in Spring v/s Java DSL

2015-10-21 Thread calyan.bandi
Hi, I am working on a camel route that reads an excel and does some processing. I had this written in Spring DSL as shown below. In the processor, the exchange body i received is java.util.ArrayList. Using a simple iterator i was able to do my processing. List orders =

Re: Apache Camel bean parameter binding issue with Spring DSL

2015-10-03 Thread calyan.bandi
Hi, You may try one of the below two approaches: 1. Redefine your method signature and use the Bean annotations. public void transformBodyUsingStyleSheet(Exchange exchange, @Header("organizationStyleSheet") String styleSheet) { .. } 2. If the above didn't work, modify the bean delcaration in

Re: cxf endpoint configuration in java DSL

2015-10-03 Thread calyan.bandi
Hi, I do not think that the below initialization would listen for the requests on the url provided in the SERVICE_ADDRESS. CxfEndpoint serviceEndpoint = new CxfEndpoint(SERVICE_ADDRESS, cxfComponent); You initialize the CxfEndpoint with the required properties. If you want to use it as a

Re: onCompletion / exchange.isFailed() does not 'see' exception.

2015-09-23 Thread calyan.bandi
Hi, Hope the below gives a better understanding to the users. There are two properties provided when dealing with exceptions - continued and handled. 1. handled - Again this property can be set with either true/false. TRUE: Do not send it further down the route. No exception sent back

Re: Processing response from REST service - cxfrs client component

2015-09-23 Thread calyan.bandi
Hi, Option "streamCache" can be set on the route in order to capture and buffer the received inputstream and not to close it. Just use the option as specified below: ... ... First time developers who are working with cxfrs component will find this very annoying unless they are aware of this

Re: cxf endpoint configuration in java DSL

2015-09-23 Thread calyan.bandi
Hi, There is no such namespache as "camel-cxf". You should remove this and use something like below: If there is indeed a namespace such as "camel-cxf" it should be added in your beans tag definition. Thanks, Kalyan -- View this message in context:

camel http v/s cxfrs component to consume REST service

2015-08-19 Thread calyan.bandi
Hi, I am trying to consume a REST webservice using the cxfrs component. The code looks as below: cxf:rsClient id=restClient address=http://localhost:8080/camel-cxf-rest/webapi/myapp/hello/greet; serviceClass=org.examples.camel.camel_cxfrs_client.HelloWorldIntf