Amazon s3 aws出站通道适配器上的通知处理程序
在过去,我能够在不同的出站通道适配器上应用建议链处理程序。我试图在Amazon s3 aws出站通道适配器上的通知处理程序,amazon-s3,spring-integration,spring-cloud,Amazon S3,Spring Integration,Spring Cloud,在过去,我能够在不同的出站通道适配器上应用建议链处理程序。我试图在intaws:s3出站通道适配器上执行相同的操作,但这是不允许的。此组件不允许此行为。基本上,我感兴趣的是找出适配器何时完成文件到S3的上传 <int-aws:s3-outbound-channel-adapter id="s3-outbound" channel="files" bucket="${s3.bucket}" multipart-upload-threshold="5192" remote-di
intaws:s3出站通道适配器上执行相同的操作,但这是不允许的。此组件不允许此行为。基本上,我感兴趣的是找出适配器何时完成文件到S3的上传
<int-aws:s3-outbound-channel-adapter
id="s3-outbound" channel="files" bucket="${s3.bucket}"
multipart-upload-threshold="5192" remote-directory="${s3.remote.dir}"
accessKey="${accessKey}" secretKey="${secretKey}">
THIS DOESNT WORKS - throws an error !!!
<int:request-handler-advice-chain>
</int:request-handler-advice-chain>
</int-aws:s3-outbound-channel-adapter>
这不起作用-抛出一个错误!!!
对,XSD不允许这样做。请随时就此事提出意见
但这并不重要,因为它根本不起作用
如果您已经使用SpringIntegration4.x,您可以使用@Bean
和@ServiceActivator
将移动到Java&Annotation配置中,用于AmazonS3MessageHandler
其中@ServiceActivator
具有adviceChain
属性,用于指定对建议的bean引用
。。。或者,您可以使用generic
执行此操作,并为第一个文件的ref
指定AmazonS3MessageHandler
为原始
。
嗯