requestBody to return out headers

2017-03-03 Thread Erol
Hi I'm using spring to call apache camel to generate a file and return the content of the file so I can force download. Currently my code calls requestBody, which returns byte[]. I can easily convert this to response stream and force file download. Problem is, can I also access requestBody respon

Re: Camel SFTP

2017-03-03 Thread David Hoffer
We are using password authentication We have log4j configured but aren't seeing any connection handshake log messages with debug enabled but I'm not sure what JSCH (the actual connection library) has for logging. Our situation is we have an SFTP server that we have no control over that is refusin

Re: Camel SFTP

2017-03-03 Thread S AR
What errors do you receive? Are you using password authentication or privateKey authentication? If you are using privateKey, Have you generated a private key file? Regarding logging, since camel uses log4j2, you can configure an appender for the classes in the package: org.apache.camel.componen

Re: Camel SFTP

2017-03-03 Thread David Hoffer
Is there a way to turn on low level logging so we can see why Camel is failing to connect? We can connect to the same server with puttyftp and put files but not with camel...and the errors are not very detailed. -Dave On Fri, Mar 3, 2017 at 9:54 AM, S AR wrote: > Hello David, > > When I work w

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread kumar
Hi Grzegorz Grzybek , I tried your way , installed karaf 4.0.8. Unable to load spring-dm getting below error: *karaf@root()>* feature:install camel-spring-dm Error executing command: Error karaf@root()> No luck. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-with-O

Re: Camel SFTP

2017-03-03 Thread S AR
Hello David, When I work with camel-sftp, The first thing I do is to manually connect to the remote machine via ssh, so that my knownHosts (System.getProperty(user.home)/.ssh/known_hosts) file is written. On windows, I use cygwin for that. I assume you can do the same with putty. You specify

Camel SFTP

2017-03-03 Thread David Hoffer
How does Camel handle the SSH cert when connecting to SFTP servers? Somehow it has to accept the cert provided by the server how does it do that? The docs say the default is: strictHostKeyChecking=no What does this mean? Does this mean it will accept every cert? What does strictHostKeyChecking=

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread Grzegorz Grzybek
Hello you have to install spring-dm features which handle Camel Spring DSL under OSGi. But Karaf 4.1 does it differently now - via aries-blueprint-spring" feature. Try Karaf 4.0.x - it has spring-dm feature. regards Grzegorz Grzybek 2017-03-03 17:20 GMT+01:00 kumar : > Hi Claus, > > I tried us

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread kumar
Hi Claus, I tried using karaf after your suggestion. I executed below commands on karaf Shell: I am using karaf:4.1.0 NO Luck not able to start the feature you provided for Camel-spring. details are given below. *karaf@root()>* feature:repo-add camel 2.18.2 Adding feature url mvn:org.apache

Split EIP si not passing all Exchange Message to Endpoints

2017-03-03 Thread jshankarc
I could observe in Split EIP, all Exchanges are not forwarded to direct endpoint and only 10 are passed. *Question*: Why all the exchanges which are processed using split are not passed to direct endpoint? Please let me how to configure split to pass all the exchange message which are processed t

Re: How to override Buffer size for httpclient when calling Rest web Service via Camel

2017-03-03 Thread Tarun.Bharti
@Claus Ibsen-2 Can you please suggest any way to overcome this limitation ? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-override-Buffer-size-for-httpclient-when-calling-Rest-web-Service-via-Camel-tp5794628p5794752.html Sent from the Camel - Users mailing list archi

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread kumar
Hi Claus, Thanks for quick reply . Surely I will look into karaf and try out samples in github . Even I prefer karaf and amazed with functionalities it provide as a container. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-with-OSGI-in-Felix-with-Spring-DSL-tp5794

Re: handle multiple JSON formats in same route

2017-03-03 Thread Mark
I agree. JSONPath is a good solution. Thank you all. On Fri, Mar 3, 2017 at 8:22 AM, jasenj1 wrote: > Right. JSONPath is probably a better choice. > > > > -- > View this message in context: http://camel.465427.n5.nabble. > com/handle-multiple-JSON-formats-in-same-route-tp5794737p5794747.html

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread Jacobsen, Jasen W.
We are using RedHat's JBoss Fuse and doing OSGI & blueprint XML. We have several support beans - Datasource beans - used in multiple Camel contexts & routes. JBoss Fuse is a bit of a beast. But if you can wrestle with it, it does end up working well enough. And JBoss's Fuse & Camel documentation i

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread souciance
I use Blueprint with Karaf rather than spring to setup my routes and camelcontext. It has worked well so far although Karaf can be a bit of pain sometimes. But have a look here for a simple example. http://blog.nanthrax.net/2014/08/testing-utest-and-itest-apache-camel-blueprint-route/ On Fri, Mar

Re: handle multiple JSON formats in same route

2017-03-03 Thread jasenj1
Right. JSONPath is probably a better choice. -- View this message in context: http://camel.465427.n5.nabble.com/handle-multiple-JSON-formats-in-same-route-tp5794737p5794747.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: handle multiple JSON formats in same route

2017-03-03 Thread jasenj1
You could always make the type determination at the text level and then marshal to the correct type later in the route using a "when" clause. http://camel.apache.org/content-based-router.html -- View this message in context: http://camel.465427.n5.nabble.com/handle-multiple-JSON-formats-in-sa

Re: handle multiple JSON formats in same route

2017-03-03 Thread souciance
I think you can use camel-jsonpath to perform xpath like to evaluate the message and based on the evaluation you can select one model over the other. On Fri, Mar 3, 2017 at 1:02 PM, Mark Webb [via Camel] < ml-node+s465427n5794737...@n5.nabble.com> wrote: > I have an incoming route that will be pr

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread Andreas Gies
Hi there, for what it's worth - we are using Camel in OSGi with a non-karaf container. However - we are not using Spring. First, our container is completely written in Scala and therefor we are using different config mechanisms. Secondly, we prefer a programmatic creation of our Camel Conte

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread Claus Ibsen
See the examples there is a spring-dm example that runs in Karaf. https://github.com/apache/camel/tree/master/examples The spring-dm example is at https://github.com/apache/camel/tree/master/examples/camel-example-spring-dm Running Camel with bare bone Felix is not really recommended / supported.

Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread kumar
Hi , I am new to OSGI world. I spent lot of time (even days ) in searching/understanding camel-spring with osgi container. I didn't find a good article for begginer like me which works straightforward with some setup or github..etc. We are having camel-spring application running well. Now we wan

handle multiple JSON formats in same route

2017-03-03 Thread Mark
I have an incoming route that will be processing a bunch of different JSON message types, does the Camel Data Format subsystem support a way to determine which type a JSON message is and then unmarshal the incoming string to the proper object?

Re: Best RES-component with SSL

2017-03-03 Thread Zoran Regvart
Hi, handling SSL/TLS in Java can be a bit complicated, you would want to be at the latest Java version to get the benefits of newer protocols/algorithms. Having said that, all the components that you mentioned (and most others IIRC), are configured using the common SSLContextParameters parameter, a