简体   繁体   English

Sun Java App Server中的JMS侦听器问题

[英]Issue with JMS Listener in Sun Java App Server

I am running a listener program on a JMS queue hosted in Sun Java System Application Server 9.1_02 (build b08-p03) 我正在Sun Java System Application Server 9.1_02(内部版本b08-p03)中托管的JMS队列上运行侦听器程序

After receiving a message I will extract and log some details in to a log file. 收到消息后,我将提取一些细节并将其记录到日志文件中。

I observed that when running listener for really long hours, it stops receiving messages. 我观察到,当侦听器长时间运行时,它将停止接收消息。 I had to manually stop the program and start it again. 我必须手动停止该程序,然后重新启动。 Then it receives some 200-300 message and then stops again. 然后它收到一些200-300的消息,然后再次停止。 I had to restart it to retrieve another set of messages. 我必须重新启动它才能检索另一组消息。

Why is this weird behavior? 为什么会有这种奇怪的行为? Can someone throw light on this? 有人可以对此发表看法吗?

Thank you Chaitanya 谢谢柴坦尼亚

I found the issue myself. 我自己发现了问题。 I am running the listener as Load Runner Java Vuser script. 我正在将侦听器作为Load Runner Java Vuser脚本运行。 One negative thing about LR is that it does not show any exceptions. LR的一个负面影响是它不显示任何异常。 The script appears to be running but it actually does nothing. 该脚本似乎正在运行,但实际上不执行任何操作。 I found this when I ported the script to Eclipse and found that the script is throwing exceptions. 当我将脚本移植到Eclipse并发现脚本抛出异常时,我发现了这一点。 This is essentially because I am not checking for a certain condition. 这主要是因为我没有检查特定条件。

Happy that I demystified at last! 很高兴我终于揭开神秘面纱!

Thanks. 谢谢。

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

相关问题 Spring - JMS,在JMS activemq服务器启动/停止几次后,侦听器服务器抛出java.io.EOFException,然后不连接到运行JMS - Spring - JMS , after couple of start/stop of JMS activemq server, listener server throws java.io.EOFException and then does not connect to running JMS Java JMS - 消息侦听器和 onException - Java JMS - Message Listener and onException 尝试为JMS队列设置侦听器时,此方法不适用于应用服务器内部 - This method is not applicable inside the app server when trying to set a listener for a JMS queue JBoss 7.2 的 JMS 服务器问题 - JMS server issue with JBoss 7.2 具有Java服务和JMS的Grails应用 - Grails App with java service and JMS 在服务器启动时设置Hibernate之前,JMS侦听器将触发 - JMS Listener fires before Hibernate is setup on Server startup 如何在 JEE 服务器(Wildfly)中的 JMS 临时队列上创建侦听器? - How to create a listener on a JMS Temporary Queue in a JEE server (Wildfly)? 侦听器处理完消息后通知JMS消息发送者(Web应用程序) - Notifying JMS Message sender (Web App) after message processed by Listener 保持程序运行的 IBM MQ JMS java 侦听器代码 - IBM MQ JMS java listener code keeping the program running 使用Java在jboss中使用MDB的JMS队列侦听器和发布者 - JMS Queue listener and publisher using MDB in jboss using java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM