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
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:
- http://sourceforge.net/projects/jca-for-ssh/
- 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 :-)
A bit of a stretch, but https://www.advantco.com/product/adapter/sftp provides what they claim is a native JCA Adapter which plugs into the existing J2EE Adapter Framework, but appears to be targeted at the SAP NetWeaver framework, so not sure what kind of luck you will have with JBoss integration.
My understanding of your requirements is, that you need to open ssh connections from your app running in JBOSS to a remote system in order to download and upload files from/to there.
In my opinion you don't need a JCA adapter. I'm not an expert on Spring but since you're talking about JBOSS I can tell you that is forbidden for any EE6 application to open server sockets(listen), but allowed to open client ones.
If you wanted to emulate an SSH server functionality in your app, then you would need to implement a JCA adapter but in your case not.
精彩评论