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 » Triggering issue

Post new topic  Reply to topic
 Triggering issue « View previous topic :: View next topic » 
Author Message
obriencm
PostPosted: Sun Apr 20, 2008 11:12 pm    Post subject: Triggering issue Reply with quote

Acolyte

Joined: 31 Jan 2002
Posts: 64
Location: Ireland

Hi there,
I am having an issue with a trigger monitor I have setup and I am hoping for a little help, it is more then likely something silly, but I have been bashing my head here against the desk and can't spot where I am going wrong. My setup is as follows:
Platform AIX
MQ ver 6.0.2

I have created a local Q we can call it Q1 where messages arrive from a remote qmgr. I have enabled triggering on this queue
Trigger control : on
Trigger type: first
Init Q : Q1.INITQ
Process name: reply.from.app

I have created Q1.INITQ

I have defined the process reply.from.app with the application id:

"/aaa/bbb/ccc/app.sh dev >test1.log &"

including the quotation marks.

I have defined the trigger monitor from the explorer as follows
Start command: /usr/mqm/bin/runmqtrm
Start args: -m QM1 -q Q1.INITQ
service type: Server type

Each time an application hits the queue I can see a message going to the dead letter queue, but the application isn't triggered and no messages are read from the local queue.

The DLH on the messages includes the following
Reason: MQFB_APPL_CANNOT_BE_STARTED
Destination queue: Q1.INITQ

I am stumped, any ideas would be greatly appreciated.
Back to top
View user's profile Send private message MSN Messenger
Gaya3
PostPosted: Sun Apr 20, 2008 11:45 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

I suspect a lot here...
1. Hope you have created the init Q properly

Go through the following links

http://www-1.ibm.com/support/docview.wss?uid=swg21164032

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzak.doc/js00754.htm

http://www.mqseries.net/phpBB2/viewtopic.php?t=28144&sid=bc6f2d67cdcea912ed3575aa91d3990a

Regards
gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
obriencm
PostPosted: Sun Apr 20, 2008 11:55 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2002
Posts: 64
Location: Ireland

Thanks for the links, unfortunately I have been through them all alreary.

You say you hope I have created the init.Q correctly. I have created this as a normal local queue that is both put & get allowed.


I got the application team to send through another message and having started the trigger monitor manually here is the output:

$ runmqtrm -m CCS -q SYSTEM.DEFAULT.INITIATION.QUEUE
5724-H72 (C) Copyright IBM Corp. 1994, 2005. ALL RIGHTS RESERVED.
WebSphere MQ trigger monitor started.

__________________________________________________
Waiting for a trigger message

'/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &' "TMC 2CBN.REPLY.FROM.ARC REPLY.FROM.ARC '/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &' CCS "
sh: /ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &: not found.
Error starting triggered application.

__________________________________________________
Waiting for a trigger message




The application in question can be kicked off manually by myself as the mqm user and once this it done it will process all the messages on the queue.

Is this including the single quotation markd (') valid in the process definition: '/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &'
Back to top
View user's profile Send private message MSN Messenger
Gaya3
PostPosted: Mon Apr 21, 2008 12:35 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

obriencm wrote:

Is this including the single quotation markd (') valid in the process definition: '/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &'


Yes,its due to that..

When you execute
'/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &' at prompt level, you will get an error saying that command not found

/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log & --> this is correct way to execute at the command level

Regards
gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Apr 21, 2008 12:36 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

What are the rights to the shell script?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Apr 21, 2008 12:42 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

obriencm wrote:

The application in question can be kicked off manually by myself as the mqm user and once this it done it will process all the messages on the queue.


Its working, and he is having the execution privileges to do so.

problem here is, its not firing...

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
obriencm
PostPosted: Mon Apr 21, 2008 12:42 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2002
Posts: 64
Location: Ireland

The rights are as follows:

-rwxr-x--- 1 protest custprod 184 Apr 17 14:51 cfp_test1.sh

so I believe this should be ok, I can run it fine as mqm and it processes the messages from the queue. mqm was added to the relavent group.

Is it possible that as the qmgr hasn't been restarted since the permissions and group memberships have been changed it has not yet inherited the new ones? Would a restart of the qmgr be needed?
Back to top
View user's profile Send private message MSN Messenger
obriencm
PostPosted: Mon Apr 21, 2008 12:45 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2002
Posts: 64
Location: Ireland

Gaya3 wrote:
obriencm wrote:

Is this including the single quotation markd (') valid in the process definition: '/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &'


Yes,its due to that..

When you execute
'/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log &' at prompt level, you will get an error saying that command not found

/ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log & --> this is correct way to execute at the command level

Regards
gayathri


Gayathri,
at the command prompt I run /ccspgm/dev/sh/cfp_test1.sh dev >cfp_test1.log & this works correctly.

my question is regarding the process definition, do I need the single quotes in there or not?
Back to top
View user's profile Send private message MSN Messenger
exerk
PostPosted: Mon Apr 21, 2008 12:55 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

obriencm wrote:
Is it possible that as the qmgr hasn't been restarted since the permissions and group memberships have been changed it has not yet inherited the new ones? Would a restart of the qmgr be needed?


If you can kick it off manually under the mqm account a restart should not be required.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Apr 21, 2008 12:59 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

[quote="obriencm]my question is regarding the process definition, do I need the single quotes in there or not?[/quote]

no, dont give any single quotes, and should not visible in the process def.

Give

dis process(<Process Name>)

the APPLICID should display the name with out any quotes or anything like that...

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
obriencm
PostPosted: Mon Apr 21, 2008 1:04 am    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2002
Posts: 64
Location: Ireland


Thanks for your help, I removed the single quotes and it seems to be working.

Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Triggering issue
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.