I have been trying to get it to work. Had to add jsch-0.1.41.jar to the lib optional folder but I keep getting this error now.
Caught: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbi' defined in file [/Users/tcondon/Projects/apache-servicemix-3.3/examples/vfs-binding/servicemix-unix.xml]: Invocation of init method failed; nested exception is javax.jbi.JBIException: Failed to initialize file system manager: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://tcondon:[email protected]/". org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbi' defined in file [/Users/tcondon/Projects/apache-servicemix-3.3/examples/vfs-binding/servicemix-unix.xml]: Invocation of init method failed; nested exception is javax.jbi.JBIException: Failed to initialize file system manager: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://tcondon:[email protected]/". I am modifying the vfs example and here is my xml file: <beans xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:foo="http://servicemix.apache.org/demo/"> <bean id="jndi" class="org.apache.xbean.spring.jndi.SpringInitialContextFactory" factory-method="makeInitialContext" singleton="true" /> <!-- the JBI container --> <sm:container id="jbi" useMBeanServer="true" createMBeanServer="true"> <sm:activationSpecs> <!-- Look for files in the inbox directory --> <sm:activationSpec componentName="filePoller" service="foo:filePoller" destinationService="foo:receiver"> <sm:component> <bean class="org.apache.servicemix.components.vfs.FilePoller"> <property name="path" value="sftp://tcondon:[email protected]/Users/tcondon/servicemix-inbox/"/> <property name="period" value="1000"/> <property name="marshaler"> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler"> </bean> </property> </bean> </sm:component> </sm:activationSpec> <!-- Write files to the outbox directory --> <sm:activationSpec componentName="fileSender" service="foo:receiver"> <sm:component> <bean class="org.apache.servicemix.components.vfs.FileWriter"> <property name="path" value="sftp://tcondon:[email protected]/Users/tcondon/servicemix-outbox"/> <property name="marshaler"> <bean class="org.apache.servicemix.components.util.BinaryFileMarshaler"> </bean> </property> </bean> </sm:component> </sm:activationSpec> </sm:activationSpecs> </sm:container> </beans> I am running MacOSX 10.5.6 and I can log into sftp via the terminal just fine. Any Ideas? THanks, Tom -- View this message in context: http://www.nabble.com/The-state-of-sftp-support-in-ServiceMix-3.3--tp23398308p23398308.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
