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 » Issue with trigger on windows server 2003

Post new topic  Reply to topic
 Issue with trigger on windows server 2003 « View previous topic :: View next topic » 
Author Message
Eve0402
PostPosted: Mon Dec 08, 2008 9:24 am    Post subject: Issue with trigger on windows server 2003 Reply with quote

Newbie

Joined: 02 Jan 2008
Posts: 6

Hello,

Hope you already faced this issue and could give me a hand on this...

Mqseries server V6 is installed on a windows server 2003, i defined a local queue A, a process P and a service TRGM to run the trigger monitor.
TRGM is running on SYSTEM.DEFAULT.INITIATION.QUEUE.
Process is launching a bat file with just a notepad command.

I connect on the server with a domain user (member of administrators and mqm groups).
When i launched directly the bat file, notepad opens correctly.

If i put a test message in the local queue A, notepad is not launched but i have a notepad.exe process running in the task manager with MUSR_MQADMIN user.

If i stop the TRGM service and run directly the runmqtrm command on cmd window, everything is working correctly (notepad is launched when i put a test message in queue A)

Do you know what is missing in my configuration? do i need to define my domain user in another group, or is there any possibility to run the mq service with another user than MUSR_MQADMIN ?

Please, please, please, if you can help

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 08, 2008 11:41 am    Post subject: Re: Issue with trigger on windows server 2003 Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Eve0402 wrote:
Do you know what is missing in my configuration?


Nothing. You say that there's a notepad process triggered when the service goes off; what else were you expecting? It's just not interacting with the screen.

Try it with a bat file that reads the message off the triggered queue (one of the sample apps perhaps). Or rework the service so it has a screen context.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Dec 08, 2008 11:57 am    Post subject: Reply with quote

Poobah

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

You have stumbled onto a well-documented issue, namely: under whose authority does an application run?

When you start the application manually, it takes on your identity.

Who (what) started the trigger monitor app? Triggered apps take on that identity.
_________________
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
kevinf2349
PostPosted: Mon Dec 08, 2008 12:54 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

bruce2359 wrote:
You have stumbled onto a well-documented issue, namely: under whose authority does an application run?

When you start the application manually, it takes on your identity.

Who (what) started the trigger monitor app? Triggered apps take on that identity.


If I recall correctly isn't there a recommendation that a Windows Service can't (or shouldn't) issue starts for any 'user interface' type programs too?

I may be talking out of a lower body extremity here as I am not really a Windows expert but that was my understanding.
Back to top
View user's profile Send private message
Eve0402
PostPosted: Mon Dec 08, 2008 2:15 pm    Post subject: Reply with quote

Newbie

Joined: 02 Jan 2008
Posts: 6

Thanks for your answers.

"Try it with a bat file that reads the message off the triggered queue"
>> I did. I just did a test with notepad cause it was easier to check what it was doing. Queue is triggered normally with a vb script that extracts the message in a directory.
But message stays in queue, and trigger does not work until i launch manually the runmqtrm with my user.
Back to top
View user's profile Send private message
Eve0402
PostPosted: Wed Dec 10, 2008 7:03 am    Post subject: Solution Reply with quote

Newbie

Joined: 02 Jan 2008
Posts: 6

Hello again,

just an update on this subject...notepad process was not a good example, but problem was coming from the fact i used a domain user instead of a local user on the server, so solution is to create also on the domain controller a group "mqm" and add in it every user who need to connect to mq,

Thanks everyone
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Dec 10, 2008 7:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Putting any users in Domain mqm, or mqm locally, grants them far more access than they deserve.

The only users that should be in Domain mqm are the MQ service users.

You should use setmqaut for everyone else.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 10, 2008 8:48 am    Post subject: Re: Solution Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Eve0402 wrote:
solution is to create also on the domain controller a group "mqm" and add in it every user who need to connect to mq,


This solution also grants every user administrative rights.

Investigate other solutions, like defining a limited-rights user and using it as MCAUser.

The issue of connection also has very little to do with the user id a triggered app is running under. Or should have.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Issue with trigger on windows server 2003
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.