|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Triggered Application |
« View previous topic :: View next topic » |
Author |
Message
|
simteq |
Posted: Mon Jul 29, 2002 4:40 am Post subject: Triggered Application |
|
|
Newbie
Joined: 29 Jul 2002 Posts: 1
|
I am using MQ v5.3 on Solaris 5.8.
I have a third party supplied triggered application which appears to have hard links to libraries which have to be in /usr/lib. These libraries relate to Sybase and Cobol functionality and are not normally located in /usr/lib. When questioned about this the supplier is saying that it is a known fault with MQ that the LD_LIBRARY_PATH environment variable is not passed from MQ to the triggered application, does anyone know about this.
Thanks, Dave |
|
Back to top |
|
 |
bduncan |
Posted: Mon Jul 29, 2002 6:05 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
I don't know about this problem specifically, but you should be able to pass environment related data (like PATH) to the trigger monitor. Or you can always trigger a batch file which sets up the path variables and then launches the application - basically a wrapper. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
kingsley |
Posted: Mon Jul 29, 2002 9:23 pm Post subject: |
|
|
Disciple
Joined: 30 Sep 2001 Posts: 175 Location: Hursley
|
Hi ,
If you are little confident in C programming, you can write you own Triggering application using C, MQSeries, Unix Internals.
You can start like this
1. Start a C Application using MQSeries (cmqc.h for Server, mqic16 or 32 for your Client Application)
2. Keep polling the Queue on Which Triggering is Enabled and take the Data from the System.Default.InitQ (if changed from this , poll this Queue)
3. Read the Structure MQTMC DataStructure
Read the Variable Process from this DataStructure which gives the process name you have mentioned inthe trigger
4. Start the process using CreateProcess in NT
In Unix, use Fork for creating Child Process.
Considerations, please take the OS Variable from MQTMC DataStructure and make sure that client you are executing is on the same OS or Not.
Hope you have got better inputs to act swiftly.
Rgds,
kalyan |
|
Back to top |
|
 |
pmane |
Posted: Sat Sep 21, 2002 1:23 am Post subject: Similar problem |
|
|
Acolyte
Joined: 17 Oct 2001 Posts: 50
|
I have similar problem , my triggered application complants that it can not fine the 3'rd party library. I tried putting it in the script but it dose not work ! |
|
Back to top |
|
 |
gvpatil |
Posted: Mon Sep 23, 2002 12:28 am Post subject: Check the env. Variables for users running Trigger Monitor |
|
|
 Newbie
Joined: 18 Jan 2002 Posts: 9
|
The triggered application is started under the same user runnning trigger monitor. If you are triggering directly the application ( and not script), the environmental setup of the parent user ( user running trigger monitor) will be in effect. Please make sure that this environment setup is good for your application.
If triggering is done to a script, then before executing application, one can over-write the environmental variables. However make sure, that these variables are properly set using correct syntax of your shell.
You can verify the variables by putting following in your script just before calling the application executable.
env >> /tmp/env_vars.txt
Hope this helps,
Regards,
G.. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|