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 » IBM MQ Installation/Configuration Support » A Question on MA7K Sopportpac

Post new topic  Reply to topic
 A Question on MA7K Sopportpac « View previous topic :: View next topic » 
Author Message
mqdev
PostPosted: Wed Mar 21, 2007 8:21 am    Post subject: A Question on MA7K Sopportpac Reply with quote

Centurion

Joined: 21 Jan 2003
Posts: 136

Hello,
We use the Supportpac MA7K to trigger MQ apps on Windows platform, using Client-Channel tables. Often times the requirement is to have multiple Trigger Monitor services running on the same box. It would be convenient to customize each Trigger Monitor's environment in terms of the Client-channel it uses. Is it possible to setup the Trigger Service so that, instead of TrigSrv.exe, we invoke something like TrigSrv.bat in which we can set the appropriate MQSERVER variable?

The readme for this SupportPac mentions that MQSERVER, should it be used should be set in the System Env variables - I couldn't find any difference in setting this in a separate window (perhaps this requirement is due to setting this as Windows Service?). If Customizing the Trigger Service environment using a batch file is not possible, how can it be achieved?

Background:
There are multiple distributed Apps which communicate with a given QM using Client Connection channels. All of them specify the QM Name on the MQCONN call. We would like each App to use it own Client-connection Channel as opposed to all of them using the same Client-connection channel as it is setup right now. Though distinguishing the Client-channels using QM Name is a possibility, it entails wide-spread changes - am trying to findout if there is a simple way out - like the above batch file.

Thanks
-mqdev
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 21, 2007 8:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I guess at a simple level, you could run each instance of the service as a different User, and set the MQCLNTCHL env vars for each user differently.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Mar 21, 2007 8:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

You can create multiple threads in a single ma7k service, each using its own "different" channel. The "setup.ini" file is pretty clear (imho) on how to create multiple threads and then supply the "channel" parameters....

-or-... the read.me tells you how to create multiple services (with different names, and presumably different userids) and then set environment variables for each userid.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
mqdev
PostPosted: Wed Mar 21, 2007 10:30 am    Post subject: Reply with quote

Centurion

Joined: 21 Jan 2003
Posts: 136

thanks for your responses Jeff & Wayne.
Wayne - I missed the CONNAME and CHANNEL parameters in the setup.ini ...I will play around with them. This is a very useful supportpac - thanks for putting it together!

-mqdev
Back to top
View user's profile Send private message
mqdev
PostPosted: Wed Mar 21, 2007 11:21 am    Post subject: Reply with quote

Centurion

Joined: 21 Jan 2003
Posts: 136

D:\MQCHLLIB\MQTriggerService>setup -f setup_test.ini
Using configuration file: setup_test.ini
ShortTmr 60, ShortRty 10, LongTmr 1200, LongRty 999999999
EventLevel 2, WaitInterval 60000, MQSeriesDLL "mqic32.dll"

Thread 0, TriggerQueueName="QM.INITQ"
TriggerQueueMgrName="QM1"
CONNAME="qa-sqldb(1414)"
CHANNEL="QM.CLI"
LOCLADDR=""
RCVDATA=""
SCYDATA=""
SENDDATA=""
RCVEXIT=""
SCYEXIT=""
SENDEXIT=""
USERID=""
SSLCIPH=""
SSLPEER=""
HBINT=""
KAINT=""
MQCD_VERSION=""

Thread 1, TriggerQueueName="QM.INITQ2"
TriggerQueueMgrName="QM1"
CONNAME="qa-sqldb(1414)"
CHANNEL="QM.CLI"
LOCLADDR=""
RCVDATA=""
SCYDATA=""
SENDDATA=""
RCVEXIT=""
SCYEXIT=""
SENDEXIT=""
USERID=""
SSLCIPH=""
SSLPEER=""
HBINT=""
KAINT=""
MQCD_VERSION=""

Updating existing Registry information.
Updating Service
In DeleteService
Error number 1072

Does anyone know what this error is? The service shows up in the Services windows as being "disabled".

Thanks
-mqdev
Back to top
View user's profile Send private message
mqdev
PostPosted: Wed Mar 21, 2007 12:04 pm    Post subject: Reply with quote

Centurion

Joined: 21 Jan 2003
Posts: 136

1072 error results when we delete a service and it is still running or installing a service marked for deletion. In my case, the service was marked for deletion but I was trying to reinstall the service with the same name (box was not rebooted between these two operations) which resulted in above error.
I installed the service with a new name and it installed alright.

-mqdev
Back to top
View user's profile Send private message
mqdev
PostPosted: Wed Mar 21, 2007 1:26 pm    Post subject: Reply with quote

Centurion

Joined: 21 Jan 2003
Posts: 136

Wayne - thanks to your pointer re CONAME, CHANNEL, our issue is solved.

-mqdev
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Mar 26, 2007 1:11 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Glad it worked out okay.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » A Question on MA7K Sopportpac
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.