[英]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.