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 API Support » Solved!!! runmqtrm as background process in Linux

Post new topic  Reply to topic Goto page Previous  1, 2
 Solved!!! runmqtrm as background process in Linux « View previous topic :: View next topic » 
Author Message
learnmqnow
PostPosted: Wed Nov 02, 2005 11:33 pm    Post subject: Reply with quote

Novice

Joined: 04 Oct 2005
Posts: 13
Location: Bangalore, India

Hi all.



The problem is solved!!! I was putting the '&' in the environment data for process definition to make the trigger a background process.

mrlinux wrote:
Please show the where you had the & in the process of starting the runmqtrm command.


Thanks to Jeff..now i removed the '&' from the process definition .
Instead i modified my shellscript and added the commands

nohup runmqtrm -m mgrName -q initq &
exit

Now when i run the shellscript its coming back to the prompt, so i can close off the terminal . The process is running in background and triggeing properly.


Thanks for the info about nohup Eddie..Actually now i understood that those are Unix commands and not related to MQ!!! forgive my ignorance, am pretty new to Linux and MQ.



EddieA wrote:

Why. You can use a single TM to handle multiple Queues being triggered



I am using clustering for load balancing. And i have four queue managers with 4 queues having same names. ie, why i got 16 triggers. If i use a single initq per queue manager , i can reduce it to 4 triggers i guess..
But bcoz am using trigger type 'first', until one triggered appication finishes , next message will not trigger rt?That will considerably affect the response time coz my pgms r starting diff threads and waiting for response frm a database..So it will b better if 16 triggers are running..Initially for unit testing, i was trying with single trigger but it took a lot of time to finish processing all messages.

Sorry for the stupid qns..I tried a lot to find on my own, but all i could find was a single line from the Websphere MQ Application Programming Guide.
'To run the started application in the background on UNIX systems, you
must put an ‘&’ at the end of the EnvData of the PROCESS definition'.


Thanks again..

Rgrds,
Greeshma.
Back to top
View user's profile Send private message
learnmqnow
PostPosted: Thu Nov 03, 2005 1:01 am    Post subject: Solved!!! Reply with quote

Novice

Joined: 04 Oct 2005
Posts: 13
Location: Bangalore, India

mquseless wrote:
You need to put the & in the EnvData so that the triggered app runs asynchronously.


Thanks..that makes it more clear..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » Solved!!! runmqtrm as background process in Linux
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.