|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to put path of Application in Triggering |
« View previous topic :: View next topic » |
Author |
Message
|
PankajS |
Posted: Tue Apr 19, 2005 2:56 am Post subject: How to put path of Application in Triggering |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Apr 19, 2005 3:42 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
PankajS |
Posted: Tue Apr 19, 2005 3:45 am Post subject: |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
Sorry friends ,there is writing mistake ....following should be skiped whilw reading Q. 1)
|
|
Back to top |
|
 |
mca |
Posted: Tue Apr 19, 2005 7:06 am Post subject: |
|
|
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 |
|
 |
PankajS |
Posted: Tue Apr 19, 2005 10:56 pm Post subject: |
|
|
Voyager
Joined: 27 Dec 2004 Posts: 82
|
Thanks Guys.......
Biginners like me are hugely helped by such direct help.....  |
|
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
|
|
|
|