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 <javamonke...@gmail.com> wrote: > Is there any way to load the privateKeyFile for sftp endpoints from the > classpath? It looks to me like JSCH is accepting a String param and then > converting that to a file, which probably won't work for classpath files. > Maybe this is an improvement in the SFTP component? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-sftp-privateKeyFile-load-from-classpath-tp5734394.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen