Ziva
Ziva

Reputation: 33

Trigger monitor does not work

I have created a queue manager (IBM WebSphere MQ->QueueManagers->new->QueueManager)

I have created a initiation Queue (QueueManager->Queues->New->Local Queue):

I have created a process (Process Definitions->New->Process Definition):

I have created an application queue (QueueManager->Queues->New->Local Queue):

I have created a service to start the trigger monitor (Services->New->Service):

When a messages put to the application Queue, no trigger message is inserted into the initiation Queue.

When I start the trigger monitor, it automatically stops after few seconds.

How do I correct these issues.

This is the output got when I start the runmqtrm:

C:\Program Files (x86)\IBM\WebSphere MQ\bin>runmqtrm -m QMGR -q INITQUEUE 

5724-H72 (C) Copyright IBM Corp. 1994, 2011.  ALL RIGHTS RESERVED.  
11/3/2017  01:54:43: WebSphere MQ trigger monitor started.  

__________________________________________________
11/3/2017  01:55:04: Waiting for a trigger message

There is no error in AMQERR01.LOG. But the process is not working. Also when a data is inserted into Application queue, it is does not enable the initiation queue. And in CMD it says as WebSphere MQ trigger monitor started,initiation queue's open input count increases to 1 but in my UI it still remains as stopped.

Version of MQ server:

Name:        WebSphere MQ  
Version:     7.5.0.2  
Level:       p750-002-130627  
BuildType:   IKAP - (Production)  
Platform:    WebSphere MQ for Windows  
Mode:        32-bit  
O/S:         Windows 7 Professional x64 Edition, Build 7601: SP1  
InstName:    Installation1  
InstDesc:  
Primary:     Yes  
InstPath:    C:\Program Files (x86)\IBM\WebSphere MQ  
DataPath:    C:\Program Files (x86)\IBM\WebSphere MQ  
MaxCmdLevel: 750  
AMQ8351: WebSphere MQ Java environment has not been configured correctly.  
AMQ8351: WebSphere MQ Java environment has not been configured correctly.  

Name:        IBM WebSphere MQ custom channel for Windows Communication Foundatio
n  
Version:     7.5.0.2  
Level:       wn750-002-130611_P  
Build Type:  Production  

Name:        IBM Message Service Client for .NET (XMS .NET)  
Version:     2.5.0.2  
Level:       nn250-002-130627  
Build Type:  Production  

Name:        IBM Global Security Kit for WebSphere MQ  
Version:     8.0.14.28  
Build Type:  Production  
Mode:        32-bit  

Name:        IBM Global Security Kit for WebSphere MQ  
Version:     8.0.14.28  
Build Type:  Production  
Mode:        64-bit  

Upvotes: 3

Views: 1594

Answers (2)

JoshMc
JoshMc

Reputation: 10652

The issue with the configuration is that you created a Process called Paint, but on the application queue you set the Process name to sample. The name of the process the queue points to needs to match the name of the process that you created..


Paul Clarke of MQGem Software presented a presentation at Capitalware's MQ Technical Conference v2.0.1.4 called MQ Triggering which is a comprehensive presentation on IBM MQ Triggering with details on how to troubleshoot issues that I have found very useful.

Upvotes: 2

Roger
Roger

Reputation: 7476

Process name: Paint

Silly rabbit, tricks are for kids!!

MQ is running under a service account. You are trying launch a GUI application in the background. I'm sure if you opened the Task Manager there will be many 'mspaint.exe' running but not visible.

Use a program that can run in the background or create your own. Create a batch file called: hello.bat and put the following in it:

echo "Hello World. " %time% > C:\temp\hello.txt

Update the MQ Process definition with 'hello.bat' and do a test. Note: Make sure the C:\temp directory exist.

Upvotes: 0

Related Questions