|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
"MQJMS2002E failed to get message from MQ queue" |
« View previous topic :: View next topic » |
Author |
Message
|
lecmns |
Posted: Tue Feb 26, 2002 10:19 pm Post subject: |
|
|
Apprentice
Joined: 26 Dec 2001 Posts: 36
|
Folks..
I am stuck with another problem.
I have nearly 5000 messages comnig into the queue.
I have only one listener instance listening on the queue from server side to process it. I do spawn up threads inside the listener as and when a message si received. But I doubtif it can handle these many at a time.
Is there a solution for this?
I tried creating say nearly listener instances on the same queue with a multi threaded program.
but when it receives a message in the queue, it's giving this error
"2002.02.27 11:39:31 MQJMS2002E failed to get message from MQ queue"
What could be the problem? I have tried in the net to find some decription about it but all in vein. Guys, help me!!
Can I spawn more than one listener instance all using the same selector tag, on the same queue? If it receives a message, will it be picked up by all of these listeners or only one of them? I know these are basic doubts, but it's really messing up my ideas about MQ.
It's URGENT!! HELP ME!!
regards
MNS |
|
Back to top |
|
 |
abmanesh |
Posted: Wed Feb 27, 2002 11:41 am Post subject: |
|
|
Apprentice
Joined: 06 Nov 2001 Posts: 39
|
In the JMS implementation connection is thread safe, but sessions and the
objects that are created from them are not thread safe. The recommended
practice for multi-threaded applications is to use a separate session for each
thread.
There is nothing that prevents from using multiple listeners on the same queue. It is more of a design consideration . If your requirement is to process messages in parallel when there are messages on the queue, yo could have one thread block on a sysnchronos QueueReceiver until a message arrives and then spawn other QueueReceivers to process the messages in parallel (just a thought!).
|
|
Back to top |
|
 |
shubha6249 |
Posted: Tue Oct 07, 2003 4:46 am Post subject: Did u get any solution for this? |
|
|
Newbie
Joined: 27 Dec 2002 Posts: 4
|
Hi
I am also having the same problem. Did u get any solution for this? If yes, either post it here or you can mail me at shubha6249@yahoo.com
Thanks
Shuby |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Oct 07, 2003 11:08 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I'd like to see the linked exception:
Code: |
} catch( JMSException je ) {
System.out.println("JMS Exception: " + je);
// check for a linked exception
Exception le = je.getLinkedException();
if (le != null) {
System.out.println("Linked exception: " + le);
}
}
|
It should point to the underlying error which may or may not point to performance/scalability problems on the getting of messages. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|