本文介绍了可创建流式有效负载的自定义m子组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到在a子流中创建流式有效负载的最简单,最快的方法.理想情况下,这将是一个Java组件.

I am trying to find the simplest and quickest way of creating streamed payload in a mule flow. Ideally this would be a java component.

整个原因是我旁边有一个数据映射器,并以流模式进行映射.因此,我希望此有效负载将是流式pojo集合.我只是尝试实现Callable接口,但是对于我来说,找到一种合适的方法来输出流有效负载并让Mule继续处理流中的下一步似乎很困难.

The whole reason is I have a datamapper right next to this and mapping in stream mode. So I would prefer this payload will be a streamed pojo collection. I have tried just implement the Callable interface, but it seems difficult for me to find a proper way to output a stream payload and let Mule go on processing next step in flow while with this stream.

谢谢!

推荐答案

使您的组件生成java.io.InputStream有效负载.

Make your component produce a java.io.InputStream payload.

这篇关于可创建流式有效负载的自定义m子组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 05:40