ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » "MQJMS2002E failed to get message from MQ queue"

Post new topic  Reply to topic
 "MQJMS2002E failed to get message from MQ queue" « View previous topic :: View next topic » 
Author Message
lecmns
PostPosted: Tue Feb 26, 2002 10:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
abmanesh
PostPosted: Wed Feb 27, 2002 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shubha6249
PostPosted: Tue Oct 07, 2003 4:46 am    Post subject: Did u get any solution for this? Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Oct 07, 2003 11:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » "MQJMS2002E failed to get message from MQ queue"
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.