【问题标题】:How to stop application , close Connection after reading 1000 messages in Spring Integration from a queue如何在从队列中读取 Spring Integration 中的 1000 条消息后停止应用程序,关闭连接
【发布时间】:2014-03-27 07:35:10
【问题描述】:

从队列中读取Spring Integration中的1000条消息后如何停止应用程序,关闭连接。

我用过 消息操作 = (Message)MessageBuilder.withPayload("@servAct.stop()").build(); 但这会停止通道,而不是整个连接和应用程序。

【问题讨论】:

    标签: spring-integration


    【解决方案1】:

    请提供更多信息,您如何启动该应用程序。也许System.exit(0) 对你来说就足够了吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-03
      • 2014-04-19
      • 2019-01-26
      • 1970-01-01
      • 2017-05-08
      • 2020-11-17
      • 2014-11-11
      • 1970-01-01
      相关资源
      最近更新 更多