简体   繁体   English

存储Weblogic JMS消息以进行分析

[英]Store Weblogic JMS messages for analysis

We are currently having issues with Weblogic JMS, some of the messages received by the Tibco end are blank, but, our logs indicate that the messages are sent in full (we log just before sending it to the queue). 当前,Weblogic JMS出现问题,Tibco端收到的某些消息为空,但是,我们的日志表明消息已完整发送(我们在将其发送到队列之前进行了记录)。 We are planning to store the jms messages for a couple of days and verify if that is a problem at the Weblogic end or the tibco end. 我们计划将jms消息存储几天,并在Weblogic端或tibco端验证这是否是问题。

I know that there is a persistance store in JMS, but that will clear the messages once the message is sent to the client. 我知道JMS中有一个持久性存储,但是一旦将消息发送到客户端,它将清除消息。 Do we have a feature that allows us to store the messages for a period of time? 我们是否具有一项功能,可以将消息存储一段时间?

Environment: Weblogic 8.1 Integration 环境:Weblogic 8.1集成

Thanks. 谢谢。

When using JMS queues for messages, the message is meant for consumption by only 1 consumer. 将JMS队列用于消息时,该消息仅供1个使用者使用。 Once the message is consumed its removed from the JMS server for good. 一旦使用完消息,就将其从JMS服务器中永久删除。

I understand your requirement is to save the already delivered messages for reconciliation. 我们了解您的要求是保存已送达的邮件以进行对帐。 This is not possible out of the box in WLS (for obvious reasons). 由于明显的原因,这不可能在WLS中开箱即用。

You have the following options 您有以下选择

1) Enable JMS message logging, this will save all the messages that reach the server to be logged as a text xml in a log file. 1)启用JMS消息日志记录,这会将到达服务器的所有消息作为文本xml保存在日志文件中。

2) Use QueueBrowser and read the messages and log it to where ever you want in what ever format you need. 2)使用QueueBrowser并阅读消息,然后以所需的格式将其记录到所需的任何位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM