Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
You should use triggering when you want your application triggered by an incoming message, and a listener when your application to listen for an incoming message. _________________ Honesty is the best policy.
Insanity is the best defence.
Triggering suits intermittent applications, where you don't want the application to be running all the time.
Listening suits more intensive and continous applications where you don't want the overhead of triggering and of loading the application for each message.
Listening can load-balance by simply running more threads which each listen on the same queue, this gives greater availability.
Always use MQGET with MQGMO_WAIT (and CONVERT, FIQ) in listener code - do not repeatedy issue MQGET without a wait option or wait in your own code as this will make the design either less responsive or inefficient.
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