Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Different inbound adapters for single SFTP Server #167

Closed
vayalaivadivel opened this issue May 4, 2016 · 3 comments
Closed

Two Different inbound adapters for single SFTP Server #167

vayalaivadivel opened this issue May 4, 2016 · 3 comments

Comments

@vayalaivadivel
Copy link

vayalaivadivel commented May 4, 2016

Hi Team,
Is it possible to have two different inbound adapters for single SFTP Server?
If yes, Please let me know the configuration of adapters using spring annotation (JDK1.9)
In addition to that more than one type of file filters.
Thanks and Regards,
VADIVEL P M.

@garyrussell
Copy link
Contributor

Github Issues are for raising problems or new feature requests, not for asking questions - please use StackOverflow (spring-integration tag) for questions.

Yes, you can use multiple adapters to talk to the same server, just configure a single DefaultSftpSessionFactory @Bean and inject it into both adapters.

We recently added information to the reference documentation about how to build various adapters using java configuration. In this case you will need SftpInboundFileSynchronizingMessageSource and SftpInboundFileSynchronizer @Beans.

@vayalaivadivel
Copy link
Author

Ok thanks

@artembilan
Copy link
Member

Closed with the power of the comments above.

Note: there is Java DSL library to simplify your life when you are with Java 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants