Author |
Message
|
terro77 |
Posted: Wed Oct 08, 2003 10:30 pm Post subject: JMS receive freezes |
|
|
Newbie
Joined: 08 Oct 2003 Posts: 3
|
Hi.
I am using MQSeries 5.2. I have queue receiver which listens to the queue. Sometimes, maybe twice a week the listener just freezes in method received.receive(). It does not throw any exceptions or anything, it just freezes and does not receive any messages sent to the queue after freezing.
This problem causes me a lot of needless work. Does anyone have any clue on this?
- Tero Järvinen |
|
Back to top |
|
 |
lash |
Posted: Fri Oct 10, 2003 11:48 am Post subject: |
|
|
 Apprentice
Joined: 14 May 2003 Posts: 47
|
send ur code completly, so that we can check where the problem is
thanks,
lash |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Oct 13, 2003 9:48 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Are you doing anything with message selectors? When you say freeze, do you mean that your program locks up or that it just doesn't receive messages? |
|
Back to top |
|
 |
terro77 |
Posted: Wed Oct 22, 2003 1:39 am Post subject: |
|
|
Newbie
Joined: 08 Oct 2003 Posts: 3
|
Hi. I think I found solution by using classes in package com.ibm.mq instead of classes in package com.ibm.mq.jms. I just have to do some more testing to be sure. Maybe there is bug in MQSeries's JMS-classes? |
|
Back to top |
|
 |
terro77 |
Posted: Wed Oct 22, 2003 1:48 am Post subject: |
|
|
Newbie
Joined: 08 Oct 2003 Posts: 3
|
bower5932 wrote: |
Are you doing anything with message selectors? When you say freeze, do you mean that your program locks up or that it just doesn't receive messages? |
I was not using selectors in my code. Also time-out was set in method QueueReceiver.receive(10000). It just locked up and never exited from that receive method. |
|
Back to top |
|
 |
saini |
Posted: Sun Oct 26, 2003 3:44 pm Post subject: |
|
|
Novice
Joined: 28 Feb 2002 Posts: 24
|
Make sure that you start() your connection before doing a receive(). |
|
Back to top |
|
 |
|