【问题标题】:Could not find method getJMSDestination in class com.ibm.mq.jms.MQQueue在 com.ibm.mq.jms.MQQueue 类中找不到方法 getJMSDestination
【发布时间】:2018-08-06 19:35:25
【问题描述】:

我们在 splunk 收到以下 INFO 消息。

[00004390] 调试 [java] [messaging] 找不到方法 com.ibm.mq.jms.MQQueue 类中的 getJMSDestination。

我用谷歌搜索了它,但无法获得正确的清晰度。 https://developer.ibm.com/answers/questions/264880/jms-messages-in-websphere-native-stderrlog/

com.ibm.mq.jms.MQQueue 中没有 getJMSDestination() 方法。但getJMSDestination() 方法在javax.jms.Message 中可用

我们正在使用带有 tc 服务器的 tanuki 包装器。我们在 wrapper.log 处得到低于 INFO 日志。看起来像是 JVM 日志,但不确定为什么此信息日志显示在 wrapper.log 中。有什么帮助吗?

INFO   | jvm 1    | 2018/06/25 11:16:17 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO   | jvm 1    | 2018/06/25 11:16:17 |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
INFO   | jvm 1    | 2018/06/25 11:16:17 | 
INFO   | jvm 1    | 2018/06/25 11:16:18 | Jun 25, 2018 11:16:18 AM org.apache.catalina.startup.Catalina load
INFO   | jvm 1    | 2018/06/25 11:16:18 | INFO: Initialization processed in 873 ms
INFO   | jvm 1    | 2018/06/25 11:16:19 | 2018-06-25 11:16:19 [000004a0] info    [native] License = license ok; 
INFO   | jvm 1    | 2018/06/25 11:16:34 | Jun 25, 2018 11:16:34 AM org.apache.catalina.startup.Catalina start
INFO   | jvm 1    | 2018/06/25 11:16:34 | INFO: Server startup in 16173 ms
INFO   | jvm 1    | 2018/06/25 11:20:10 | 2018-06-25 11:20:10 [00001cb8] debug   [java  ] [messaging ] Could not find method getJMSDestination in class com.ibm.mq.jms.MQQueue
INFO   | jvm 1    | 2018/06/25 11:20:24 | 2018-06-25 11:20:24 [00001cb8] debug   [java  ] [messaging ] Could not find method getJMSDestination in class com.ibm.mq.jms.MQQueue

【问题讨论】:

    标签: java ibm-mq wrapper tcserver tanuki


    【解决方案1】:

    请注意,您的 MQ 队列 (com.ibm.mq.jms.MQQueue) 是 JMS 端点,而不是 JMS 消息。 JMS 队列上的关闭方法是 getQueueName()。 如果你想要实际的消息,你的应用应该使用 MQ 消息,而不是队列本身

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-18
      • 2023-03-17
      • 2018-04-02
      • 2011-11-30
      相关资源
      最近更新 更多