【问题标题】:Unable to view messages in HermesJMS + Solace无法在 HermesJMS + Solace 中查看消息
【发布时间】:2018-07-13 02:02:31
【问题描述】:
  1. 我在 HermesJMS 上创建了一个成功的 SolaceSession。我能够从 HermesJMS(HermesJMS>>Messages>>Send a text message)成功地将消息发送到 JMS 队列(TEST.1)。

    我可以在 SolAdmin 中看到 Messages Spooled 计数增加了 1。

  2. 但是当我从 HermesJMS 浏览 JMS 队列 (TEST.1) 时,我无法在 HermesJMS 中查看它们。

    在底部,我在 HermesJMS 上看到了这条消息: 在 SolaceSession 上浏览 TEST.1:完成 还有这个消息: 完成的。未阅读任何消息。

  3. 检查 hermes.log 后,我看到以下消息:

2018-07-13 09:57:07,654 [Context_3_ReactorThread] 调试 com.solacesystems.jcsmp.impl.flow.SubFlowManagerImpl - Demux pub msg:com.solacesystems.jcsmp.impl.JCSMPGenericXMLMessage[messageId=29609213,ackMessageId=0,prevId=0,CID_count=0,userData=,type=PERSISTENT,priority=-1,redelivered=false,timeToLive=0,expiration=0,dmqEligible=false,topicSeqNum=null,metadataLen= 0,contentLen=94,attLen=0,deliverToOne=false,ackImmediately=false,sendCount=0]

消息 ID 与 SolAdmin 中的相同。

2018-07-13 09:57:07,670 [Context_3_ReactorThread] 调试 com.solacesystems.jcsmp.impl.flow.SubFlowManagerImpl - 收到传入消息,但未找到 flowId=8676 的活动流,忽略。

能否请您告诉我为什么 Solace 会忽略该消息,最终 hermesJMS 不会显示它。

提前感谢您的帮助。

【问题讨论】:

  • 嗨..请您提示谁将创建此日志摘录中提到的流:>>收到的传入消息未找到活动流。我真的被卡住了。

标签: solace hermes-jms


【解决方案1】:

您似乎没有将-DSolace_JMS_Browser_Timeout_In_MS=1000 JVM 系统属性添加到Hermes。您可以参考https://dev.solace.com/integration-guides/hermes-jms/,了解有关如何设置 Hermes 与 Solace 合作的完整详细信息。

如果设置-DSolace_JMS_Browser_Timeout_In_MS=1000后问题仍未解决,请提供全套日志。

【讨论】:

  • 感谢您的回复@Russell Sim。我确实在 hermes.bat 文件中添加了 -DSolace_JMS_Browser_Timeout_In_MS=1000 但无济于事。请在下面找到完整的日志:
  • 请注意,您的链接似乎不是完整的日志。我们缺少诸如DEBUG com.solacesystems.jms.SolConnection - Creating connection. Properties used for connection creation: 之类的条目,紧随其后的是使用的所有属性的完整列表。然而,从给出的答案来看,答案是一样的。 -DSolace_JMS_Browser_Timeout_In_MS 未设置。
猜你喜欢
  • 2017-05-13
  • 2015-08-25
  • 2023-03-23
  • 1970-01-01
  • 2019-05-04
  • 1970-01-01
  • 2022-01-18
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多