SI SFTP Support
- Inbound Channel Adapter
- Outbound Channel Adatper
- Outbound Gateway
JSch
- Every time an adapter requests a session object from its SessionFactory, a new SFTP session is being started.
- Under the covers, the SFTP Session Factory relies on the JSch library to provide the SFTP capabilities.
- Spring Integration also supports the caching of SFTP sessions
- PropertyPlaceHolderConfigurer
- To externalize property values from a bean definition in a separate file using the standard Java Properties format.
- <context:property-placeholder/>
- From Spring 2.5
- Supports a comma-separated list in the location attribute
- System.properties
- The PropertyPlaceholderConfigurer not only looks for properties file you specify. By default it also checks against the Java System Properties if it cannot find a property in the specified properties files.
- systemPropertiesMode
- never(0)
- fallback(1)
- override(2)
- Class name substitution
SFTP Inbound Channel Adapter
- Is a special listener that will connect to the server and listen for the remote directory events
- new file created
- will initiate a file transfer
- <int-sftp:inbound-channel-adapter/>
- By default that transferred file will carry the same name as the original file.
- local-filename-generator-expression
- SpEL
- The root object of the SpEL Evaluation Context is the original name of the remote file (String).
- File filtering
- filename-pattern
- filename-regex
- org.springframework.integration.file.filters.FileListsFilter
- SFTP Inbound Channel Adapter is a Polling Consumer.
No comments:
Post a Comment