Author |
Message
|
trinath |
Posted: Thu Jul 10, 2014 1:38 am Post subject: Application Triggering |
|
|
 Apprentice
Joined: 02 Jun 2014 Posts: 34
|
Hi all
please tell me, how to call java class by using Triggering, please provide some example code |
|
Back to top |
|
 |
PaulClarke |
Posted: Thu Jul 10, 2014 2:40 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Well, it probably depends on the environment you want. There is a different trigger monitor for each environment and the commands to start the program are different. MQ generates the trigger message but it is up to the trigger monitor to actually start the application. MQ does provide a number of trigger monitors with the product but there is nothing to stop you writing your own if you have a different environment.
For a simple JAVA program it should be possible just to use the standard RUNMQTRM. In the process object you would just specify the command you wish to run. Something like....java myprog etc
Does that help at all?
Paul _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Jul 10, 2014 12:09 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
I always found it easier to create a shell script (Unix/Linux) or batch file (Windows) to set the environment variables like JAVA_HOME, CLASSPATH, etc.. and then invoke the JVM. I use the shell script/batch file in the process definition.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
trinath |
Posted: Thu Jul 10, 2014 7:40 pm Post subject: |
|
|
 Apprentice
Joined: 02 Jun 2014 Posts: 34
|
thank you for reply
please tell me, how to convert java class to batch file |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jul 10, 2014 8:21 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
trinath wrote: |
please tell me, how to convert java class to batch file |
You don't convert anything.
Rather, you create a batch script that contains each and every one of the command-line commands necessary to successfully execute the java class. It is the name of this batch script that you specify in the process definition. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Jul 11, 2014 5:58 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Search this site on triggering java. Its been discussed before. Jeff wrote up a detailed set of instructions several years ago on it. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 11, 2014 1:51 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
|