Posted: Thu Aug 22, 2002 11:08 pm Post subject: Trigging Java using MQ Trigger
Acolyte
Joined: 17 Oct 2001 Posts: 50
How can I trigger Java application using MQ trigger. Only way to define process is
DEFINE PROCESS (TEST.PROCESS)
APPLTYPE (UNIX)
APPLICID ('testapp')
Now I have a class file , I would like to execute the process as
java testapp someargs
Can I do that ? Or I have to write a script file and execute it ?
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
Write a script to execute the class and call that from the Process definition (especially if you need to setup path variables, etc, before running java). If additional declarations aren't necessary, you can simply stick the entire 'java testapp someargs' in the APPLICID field, and it will run. However, you must ensure everything is within PATH variables defined within the scope of the user running the trigger monitor. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
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