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 API Support » Listener event For MQ

Post new topic  Reply to topic
 Listener event For MQ « View previous topic :: View next topic » 
Author Message
manikabedi
PostPosted: Wed Mar 17, 2004 9:19 am    Post subject: Listener event For MQ Reply with quote

Newbie

Joined: 16 Mar 2004
Posts: 3

Hi,

Is there a listener event or object for Websphere MQ?

I have a program which is supposed to look into a queue to see any new messages have come. Right now I am running a thread which loops this message queue all the time. But this is eating up my CPU when no messages are coming through.

Is there any event which can tell me a new message has come, like Sonic MQ has a onMessage event which indicates this.

Any help will be appreciated.

Thanks
Manika
Back to top
View user's profile Send private message
kman
PostPosted: Thu Mar 18, 2004 12:21 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

It depends. You can do triggering. Where the application is only triggered (or got triggered) when there is a message arrival in the queue.
Or if you are using JMS, you can use the onMessage method.
Back to top
View user's profile Send private message Yahoo Messenger
gunter
PostPosted: Thu Mar 18, 2004 12:36 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

Loop around a get without wait is generally not a good idea. If you loop with wait( unlimited or with time) the process won't eat all your cpu.
Solving the problem: How break up a loop is discussed in other threads. Search "request response" on this site.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Mar 18, 2004 8:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

If you use the JMS, you can set up an onMessage asynchronous listener that will get messages as they arrive. It is similar to triggering.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bob_buxton
PostPosted: Fri Mar 19, 2004 1:07 am    Post subject: Reply with quote

Master

Joined: 23 Aug 2001
Posts: 266
Location: England

On some platforms you can use MQGMO_SET_SIGNAL to request asynchronous notification of message arrival.
_________________
Bob Buxton
Ex-Websphere MQ Development
Back to top
View user's profile Send private message
josh@evare.com
PostPosted: Fri Mar 19, 2004 5:13 pm    Post subject: Reply with quote

Newbie

Joined: 19 Mar 2004
Posts: 1

Which platforms does WMGMO_SET_SIGNAL work on? Specifically, does in work in Windows 2000?

The documentation I've read claim it is supported on 32-bit Windows platforms (I figure W2K falls in that bucket). But every time I try to use WMGMO_SET_SIGNAL, all I get is MQRC_OPTIONS_ERROR.
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Mar 19, 2004 8:32 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I believe that 32 bit Windows reference is referring to the MQSeries for Windows 2.1 product. It wasn't quite a full-function MQ. I believe it was also called the leaf-node qmgr? I don't believe the set signal works with the regular Windows platform products.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
EddieA
PostPosted: Sat Mar 20, 2004 10:14 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
This option is supported in the following environments: z/OS, Compaq NonStop Kernel, Windows 95, Windows 98

And as Ron stated the Windows is a:
Quote:
reference is referring to the MQSeries for Windows 2.1 product


Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Listener event For MQ
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.