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 » Triggered Application

Post new topic  Reply to topic
 Triggered Application « View previous topic :: View next topic » 
Author Message
simteq
PostPosted: Mon Jul 29, 2002 4:40 am    Post subject: Triggered Application Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Mon Jul 29, 2002 6:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
kingsley
PostPosted: Mon Jul 29, 2002 9:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pmane
PostPosted: Sat Sep 21, 2002 1:23 am    Post subject: Similar problem Reply with quote

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
View user's profile Send private message
gvpatil
PostPosted: Mon Sep 23, 2002 12:28 am    Post subject: Check the env. Variables for users running Trigger Monitor Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Triggered Application
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.