【发布时间】:2020-07-10 22:42:18
【问题描述】:
我正在使用 spring 集成网关来公开休息服务。它配置了请求通道和回复通道。我正在寻找能够给我每次休息操作所需时间的配置。
以下是网关配置:
<int:gateway id="testServiceGateway"
service-interface="com.test.ws.TransactionServices"
default-reply-time-out="5000"
error-channel="txErrorChan">
<int:method name="evaluateTransaction"
request-channel="tranRequestChan"
reply-channel="tranResponseChan"
reply-time-out="3000" />
</int:gateway>
例如:我为 kafka-outbound-channel-adapter 使用了自定义 request-handler-advice-chain。正在为网关寻找类似的东西?
【问题讨论】:
-
也许你可以检查一下:stackoverflow.com/questions/32213467/…
-
你目前的配置是什么?
-
@Artem,这是我当前的网关配置。
-
请不要在 cmets 中放置错误代码 sn-ps。最好用适当的格式编辑您的问题。
-
看看我是如何格式化您的问题以使其他人可读的。请学习如何在 SO 上发帖:stackoverflow.com/help/how-to-ask。
标签: java spring spring-integration