Search code examples
javaspringsftpjboss6.xjca

SFTP JCA Connector?


I'm building a Spring 3.0 app that is running on JBoss 6.x. I have a need for my application to access files (get and put) via sftp. Having never done this before, I did some research and found that Spring-Integration has support for sftp. However, the architect on this project is insisting that the connection must come from the container and not from the app.

Consequently, I find myself searching for an SFTP JCA, but cannot find anything of value. I did run across txconnect.sourceforge.net but the library seems as though there is no active development and does not support ssh keys (only username/pwd).

Is there anything out there that I can use? Searching on Google has turned up nothing. Can Spring be configured as a JCA for JBoss? Do I need something else?

Thanks! Eric


Solution

  • One general thing: In the long run it's wise to stick to your specs unless you really know what hurting it can mean for your project.

    So, if you are sure that you want to / must use JCA, here's something:

    A quick search gave me two connectors:

    1. http://sourceforge.net/projects/jca-for-ssh/
    2. http://jca-for-ssh.sourceforge.net

    They don't appear to be that mature, although I didn't use them myself.

    What do you need your connector for? If it's just simple things, you can also write one yourself. For example: do you need transaction support? Do you need to support both inbound and outbound connections?

    In case you have more questions, let me know :-)