Java 如何连接spring XD上的水槽?
我希望自定义作业模块与SpringXD上的自定义接收器模块连接 另外,我想在作业模块中使用输出通道。(以便我可以进行数据传输):( 下面是我的“batch module.xml”Java 如何连接spring XD上的水槽?,java,xml,spring-integration,spring-batch,spring-xd,Java,Xml,Spring Integration,Spring Batch,Spring Xd,我希望自定义作业模块与SpringXD上的自定义接收器模块连接 另外,我想在作业模块中使用输出通道。(以便我可以进行数据传输):( 下面是我的“batch module.xml” <context:annotation-config/> <context:component-scan base-package="test.server.springxdmodules.job"/> <util:properties id="config" location="cl
<context:annotation-config/>
<context:component-scan base-package="test.server.springxdmodules.job"/>
<util:properties id="config" location="classpath:application.yml"/>
<int:channel id="output"/>
<int:gateway id="gateway"
service-interface="test.server.springxdmodules.job.gateway.MessageGateway">
<int:method name="sendMessage" request-channel="output"/>
</int:gateway>
<!-- Actual Job -->
<batch:job id="data-remover-job">
<batch:step id="query-generation-step">
<batch:tasklet ref="pastDataRemoveTasklet"/>
</batch:step>
</batch:job>
<bean id="pastDataRemoveTasklet"
class="test.server.springxdmodules.job.tasklet.PastRemoveDataTasklet"/>
下面是SpringXD上的作业启动异常
java.lang.UnsupportedOperationException:作业模块没有
输出通道设置。at
org.springframework.xd.dirt.plugins.AbstractJobPlugin.getOutputChannelName(AbstractJobPlugin.java:49)
~[spring-xd-dirt-1.3.1.释放。震击器:1.3.1.释放]位于
org.springframework.xd.dirt.plugins.AbstractMessageBusBinderPlugin.bindConsumerAndProducers(AbstractMessageBusBinderPlugin.java:143)
~[spring-xd-dirt-1.3.1.释放。震击器:1.3.1.释放]位于
org.springframework.xd.dirt.plugins.job.JobPlugin.postProcessModule(JobPlugin.java:65)
~[spring-xd-dirt-1.3.1.释放。震击器:1.3.1.释放]位于
org.springframework.xd.dirt.module.ModuleDeployer.postProcessModule(ModuleDeployer.java:238)
~[spring-xd-dirt-1.3.1.释放。震击器:1.3.1.释放]位于
org.springframework.xd.dirt.module.ModuleDeployer.doDeploy(ModuleDeployer.java:218)
~[spring-xd-dirt-1.3.1.释放。震击器:1.3.1.释放]
提前感谢:)