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 » Why is there no endmqtrm?

Post new topic  Reply to topic
 Why is there no endmqtrm? « View previous topic :: View next topic » 
Author Message
mattfarney
PostPosted: Wed May 04, 2011 4:37 pm    Post subject: Why is there no endmqtrm? Reply with quote

Disciple

Joined: 17 Jan 2006
Posts: 167
Location: Ohio

Subject pretty much says it all.

I've seen posts that say you can disable access to the initiation queue to stop it. Killing it manually is always an option.

I'm just curious why there is no endmqtrm. In a testing environment, it would be nice to be able to start and stop trigger monitors imo.

-mf
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed May 04, 2011 7:34 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9471
Location: US: west coast, almost. Otherwise, enroute.

I'm guessing that it's because runmqtrm is a supplied sample application, and not a service.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 04, 2011 8:15 pm    Post subject: Reply with quote

Grand High Poobah

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

However there is somewhere in the documentation and exemple on how to set the trigger monitor up as a service with start and stop arguments...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Thu May 05, 2011 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Go to the InfoCenter and make a search for amqsstop , you'll get one search result, open it, server service object configured for trigger monitor.

<Though I do not get much description about amqsstop process in the mq manual other then that one liner statement.>


_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
mattfarney
PostPosted: Thu May 05, 2011 8:07 am    Post subject: Reply with quote

Disciple

Joined: 17 Jan 2006
Posts: 167
Location: Ohio

Code:
DEFINE SERVICE(S1) +
       CONTROL(QMGR) +
       SERVTYPE(SERVER) +
       STARTCMD('+MQ_INSTALL_PATH+bin/runmqtrm') +
       STARTARG('-m +QMNAME+ -q ACCOUNTS.INITIATION.QUEUE') +
       STOPCMD('+MQ_INSTALL_PATH+bin/amqsstop') +
       STOPARG('-m +QMNAME+ -p +MQ_SERVER_PID+')


The syntax +QMNAME+ is used a bunch in these sample commands.
Are those fields (+FIELD+) internally available variables that MQ is maintaining?

I assume so, since otherwise, this example is mostly useless. MQ_SERVER_PID would be painful to track and pass back in to this.

-mf
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu May 05, 2011 10:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Easy enough to create a test service that calls echo or cat to output +MQ_INSTALL_PATH+ or etc...
Back to top
View user's profile Send private message
mattfarney
PostPosted: Thu May 05, 2011 10:30 am    Post subject: Reply with quote

Disciple

Joined: 17 Jan 2006
Posts: 167
Location: Ohio

Found my answer under
"Replaceable inserts on service definitions" -> "Common Tokens"

-mf
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu May 05, 2011 3:44 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

bruce2359 wrote:
I'm guessing that it's because runmqtrm is a supplied sample application, and not a service.

runmqtrm is a supported program in the MQ binaries directory, it is not a sample application ! Maybe you are thinking of the sample trigger monitor, amqstrg.

As the prefix indicates, 'run' means that it is a potentially long running program, compared to the the 'str' and 'end' programs which are short running and only start and end other programs.

Since the introduction of MQ Service objects, the preferred method of operating a Trigger Monitor is to let the Queue Manager look after it, eg.

*
* Define a Service object for a trigger monitor on the default
* initiation queue, see http://www.ibm.com/support/docview.wss?uid=swg21284004 .
*
DEFINE SERVICE('DEFTRIGMON.SERVICE') +
DESCR('Default trigger monitor') +
STARTCMD('+MQ_INSTALL_PATH+bin\runmqtrm.exe') +
STARTARG('-m +QMNAME+ -q SYSTEM.DEFAULT.INITIATION.QUEUE') +
STOPCMD('+MQ_INSTALL_PATH+bin\amqsstop.exe') +
STOPARG('-m +QMNAME+ -p +MQ_SERVER_PID+') +
STDOUT('+MQ_INSTALL_PATH+deftrigmon-out.log') +
STDERR('+MQ_INSTALL_PATH+deftrigmon-err.log') +
CONTROL(QMGR) +
SERVTYPE(SERVER)
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu May 05, 2011 7:31 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9471
Location: US: west coast, almost. Otherwise, enroute.

According to:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/fg13970_.htm

amqstrg0
This is a sample trigger monitor that provides a subset of the function provided by runmqtrm. See Sample programs (all platforms except z/OS) for more information on amqstrg0.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri May 06, 2011 4:54 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

gbaddeley wrote:
bruce2359 wrote:
I'm guessing that it's because runmqtrm is a supplied sample application, and not a service.

runmqtrm is a supported program in the MQ binaries directory, it is not a sample application ! Maybe you are thinking of the sample trigger monitor, amqstrg.

As the prefix indicates, 'run' means that it is a potentially long running program, compared to the the 'str' and 'end' programs which are short running and only start and end other programs.

Which sorta circles back to Matt's original question, which I too wondered about. runmqlsr has endmqlsr. Putting aside that there are better ways to control the trigger monitor and listener in MQ 7, hostorically speaking, why didn't Hursley create endmqtrm for runmqtrm? It seems like a logical requirement.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Mon May 09, 2011 6:57 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

PeterPotkay wrote:
gbaddeley wrote:
bruce2359 wrote:
I'm guessing that it's because runmqtrm is a supplied sample application, and not a service.

runmqtrm is a supported program in the MQ binaries directory, it is not a sample application ! Maybe you are thinking of the sample trigger monitor, amqstrg.

As the prefix indicates, 'run' means that it is a potentially long running program, compared to the the 'str' and 'end' programs which are short running and only start and end other programs.

Which sorta circles back to Matt's original question, which I too wondered about. runmqlsr has endmqlsr. Putting aside that there are better ways to control the trigger monitor and listener in MQ 7, hostorically speaking, why didn't Hursley create endmqtrm for runmqtrm? It seems like a logical requirement.




What about program to end dead letter queue handler ?
I found an old post Here (http://mqseries.net/phpBB/viewtopic.php?t=47182&postdays=0&postorder=asc&start=0&sid=d53b2e169f216b41d568741883963f72) which says about 'How to end the dlq handler' manually !


_________________
*Life will beat you down, you need to decide to fight back or leave it.
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 » Why is there no endmqtrm?
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.