Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon s3 aws出站通道适配器上的通知处理程序_Amazon S3_Spring Integration_Spring Cloud - Fatal编程技术网

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
为原始
。 嗯