RE: camel sftp privateKeyFile - load from classpath

2013-07-01 Thread Siano, Stephan
: Re: camel sftp privateKeyFile - load from classpath Hi Yeah if sftp accepts an InputStream for the private key file, then we can use the resource loader abstraction to load it from classpath and file systems. See: org.apache.camel.util.ResourceHelper#resolveMandatoryResourceAsInputStream This is

RE: camel sftp privateKeyFile - load from classpath

2013-06-23 Thread Siano, Stephan
Hi, I have attached a patch for the camel-ftp component to https://issues.apache.org/jira/browse/CAMEL-6477 that has the following functionality: 1. add a test for the existing (file based) client key authentication 2. add new configuration parameters knownHostsUri and privateKeyUri that allow

Re: camel sftp privateKeyFile - load from classpath

2013-06-22 Thread Claus Ibsen
Sounds good. There is a JIRA ticket registered here https://issues.apache.org/jira/browse/CAMEL-6477 On Sat, Jun 22, 2013 at 5:41 AM, Siano, Stephan wrote: > Hi, > > This ResourceHelper looks interesting. I will look into this and attach a > patch to the JIra task next week. > > Best regards > S

RE: camel sftp privateKeyFile - load from classpath

2013-06-21 Thread Siano, Stephan
Hi, This ResourceHelper looks interesting. I will look into this and attach a patch to the JIra task next week. Best regards Stephan

Re: camel sftp privateKeyFile - load from classpath

2013-06-21 Thread javamonkey79
I've created the issue here: https://issues.apache.org/jira/browse/CAMEL-6477 Stephan, I'd be happy to submit a patch unless you or someone else should work on it... can you point me to where camel actually calls jsch wrt the keyfile logic? -- View this message in context: http://camel.4654

Re: camel sftp privateKeyFile - load from classpath

2013-06-21 Thread Claus Ibsen
est regards > Stephan > > -Original Message- > From: javamonkey79 [mailto:javamonke...@gmail.com] > Sent: Donnerstag, 20. Juni 2013 22:11 > To: users@camel.apache.org > Subject: RE: camel sftp privateKeyFile - load from classpath > > @Stephan - that is a bit over my head, perh

RE: camel sftp privateKeyFile - load from classpath

2013-06-20 Thread Siano, Stephan
com] Sent: Donnerstag, 20. Juni 2013 22:11 To: users@camel.apache.org Subject: RE: camel sftp privateKeyFile - load from classpath @Stephan - that is a bit over my head, perhaps I don't understand the sftp component and jsch well enough yet. What I do know is that jsch is taking the String

RE: camel sftp privateKeyFile - load from classpath

2013-06-20 Thread javamonkey79
@Stephan - that is a bit over my head, perhaps I don't understand the sftp component and jsch well enough yet. What I do know is that jsch is taking the String param passed in via Camel (the fileName param) and turning that in to a File, which I don't think will work with classpath resources? There

RE: camel sftp privateKeyFile - load from classpath

2013-06-20 Thread Siano, Stephan
interfaces would have to be provided by the user. What do you think about this? Best regards Stephan -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Donnerstag, 20. Juni 2013 12:54 To: users@camel.apache.org Subject: Re: camel sftp privateKeyFile - load from

Re: camel sftp privateKeyFile - load from classpath

2013-06-20 Thread Claus Ibsen
Hi Yeah fell free to look into this. Maybe we can load the key file using an InputStream etc. You can use the ClassResolver API from CamelContext to load resources and classes from classpath. That should work for both OSGi and non OSGi runtimes. On Wed, Jun 19, 2013 at 6:55 PM, javamonkey79 wro