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 » How to put path of Application in Triggering

Post new topic  Reply to topic
 How to put path of Application in Triggering « View previous topic :: View next topic » 
Author Message
PankajS
PostPosted: Tue Apr 19, 2005 2:56 am    Post subject: How to put path of Application in Triggering Reply with quote

Voyager

Joined: 27 Dec 2004
Posts: 82

Hi Friends,
I am trying to execute triggering.

Scenario:
I am trying to invoke the java class for every message on the local Queue.

I am running the Trigger Monitor from E:\MyMq\JavaPrg and my java class ,that to be invoked is also on the location E:\MyMq\JavaPrg.....(so they are at same level)

Following is the Status of the Process Definition Fields:
Application ID : "java BasicGet"
Environment Data : {Blank}
User data : {Blank}

The application is triggered only if the same level of the Trigger Monitor and the BasicGet.class is maintained

My Question is :
1) How can we achieve the scenario , where Trigger monitor and .class file
is on different level….(Where to put the related path)
2) When and how the Environment and User fields are used
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 19, 2005 3:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=12988
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
PankajS
PostPosted: Tue Apr 19, 2005 3:45 am    Post subject: Reply with quote

Voyager

Joined: 27 Dec 2004
Posts: 82

Sorry friends ,there is writing mistake ....following should be skiped whilw reading Q. 1)
Quote:
….(
Back to top
View user's profile Send private message
mca
PostPosted: Tue Apr 19, 2005 7:06 am    Post subject: Reply with quote

Disciple

Joined: 09 Mar 2005
Posts: 196

Guess U can put the Java class anywhere on ur computer, but make sure u give the full path for the application to get triggered. Also It is not an good idea to give the java program for triggering, but create an .bat file (windows) or .sh (unix) and specify the library path and class path in it and then give the name of ur java program in that and invoke this .bat/.sh file.

If u r working on UNIX...

runmqsc QM
DEFINE QLOCAL(Q) TRIGGER TRIGTYPE(every) INITQ(SYSTEM.DEFAULT.INITIATION.QUEUE) PROCESS(PROC1)
DEFINE PROCESS(PROC1) APPLTYPE(UNIX) APPLICID('E:\MyMq\JavaPrg.....')
END

Replace "QM" with ur Queue Manager name. the single quotes or double quotes depend on the flavor of UNIX u r using. If u are working on windows, there is no need to start listener but on unix u need to start listener manually. "&" denotes to run it back end.

runmqlsr -t tcp -m QM -p 7777 &

Also start the trigger monitor backend:(for UNIX)

runmqtrm -m QM -q SYSTEM.DEFAULT.INITIATION.QUEUE &

This may be of some use to u regarding triggering...

http://www.mqseries.net/phpBB2/viewtopic.php?t=21463

Thanks
MCA
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
PankajS
PostPosted: Tue Apr 19, 2005 10:56 pm    Post subject: Reply with quote

Voyager

Joined: 27 Dec 2004
Posts: 82

Thanks Guys.......
Biginners like me are hugely helped by such direct help.....
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 » How to put path of Application in Triggering
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.