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 » General IBM MQ Support » Defining Triggers on Queues

Post new topic  Reply to topic
 Defining Triggers on Queues « View previous topic :: View next topic » 
Author Message
preetipadma
PostPosted: Fri Apr 28, 2006 12:02 am    Post subject: Defining Triggers on Queues Reply with quote

Novice

Joined: 05 Apr 2006
Posts: 22

Hi All,

I am working On windows.

I have defined a local queue Q1 and activated the Triggering Control on it.
The Trigger is supposed to fire on 'Every Message' and call a process 'P1' which is defined and it calls a batch script which creates a directory 'D1'.

Now my Initiation Q is 'SYSTEM.CHANNEL.INITQ.

I want to know whether this is the correct Initiation Q?

Coz I am getting an Error as below

----- amqrcoba.c : 1187 -------------------------------------------------------
4/28/2006 13:10:12 - Process(4088.1) User(xxxx) Program(runmqchi.exe)
AMQ9519: Channel 'E:\MQSeries\TrgProc.' not found.

EXPLANATION:
The requested operation failed because the program could not find a definition
of channel 'E:\MQSeries\TrgProc.'.
ACTION:
Check that the name is specified correctly and the channel definition is
available.
----- amqrcoba.c : 1187 -------------------------------------------------------

If the Initiation Queue is ok then what is my Problem?
I had also tried with SYSTEM.DEFAULT.INITIATION.QUEUE.

Why my Batching Prgrom is not getting executed?
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Apr 28, 2006 12:33 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

no. the system.channel.initq is only for the channel initiator if you want to start channels automatically by triggering the xmitq. dont use it for application triggering.
define your own initiation queue (a qlocal) and start a trigger monitor for it, change the definition of the queue that is triggered and you should be fine.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Fri Apr 28, 2006 5:08 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
The Trigger is supposed to fire on 'Every Message'


Hack, spit...bad, bad, bad!

I have yet to find a truly good reason to use trigger type of EVERY and most times I have seen it used has been because of lazy/bad application design. Why do you need the application triggered every time a message hits? How are you designing the flow to handle unexpected message flooding?

<added later> But I am open to listening as to what is a good use of EVERY
Back to top
View user's profile Send private message
preetipadma
PostPosted: Fri Apr 28, 2006 5:27 am    Post subject: Defining Triggers on Queues Reply with quote

Novice

Joined: 05 Apr 2006
Posts: 22

HMMM..

I was unaware of this Fact !!!

But If I want to catch execptions every time it occurs and do not want to delete the error as the administrator needs to see it and rectify it, Using 'First' will not help me, neither will 'Depth'.

The scenario is basically to trap exceptions in this queue and trigger a process which notifies the Administrator that something is wrong.

If you can suggest how I can attain my objective without using 'Every', it will be helpful ...

Thanks in Advance
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Apr 28, 2006 6:17 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

You should use First and your program should loop through the messages in the queue until it drains off the queue.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Fri Apr 28, 2006 1:31 pm    Post subject: Re: Defining Triggers on Queues Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

preetipadma wrote:
HMMM..

I was unaware of this Fact !!!

But If I want to catch execptions every time it occurs and do not want to delete the error as the administrator needs to see it and rectify it, Using 'First' will not help me, neither will 'Depth'.

The scenario is basically to trap exceptions in this queue and trigger a process which notifies the Administrator that something is wrong.

If you can suggest how I can attain my objective without using 'Every', it will be helpful ...

Thanks in Advance

If you want to keep processing see Vennela's post.
Bad messages need then to be "processed" i.e. moved to a bad message queue and you need to have that one monitored to get alerted.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Defining Triggers on Queues
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.