Author |
Message
|
deneb |
Posted: Tue Apr 16, 2002 8:35 pm Post subject: |
|
|
 Novice
Joined: 15 Apr 2002 Posts: 18
|
Hi
any example of a trigger executing a java code |
|
Back to top |
|
 |
dotjas |
Posted: Mon Apr 29, 2002 8:14 am Post subject: |
|
|
Novice
Joined: 28 Apr 2002 Posts: 14 Location: Madison, WI
|
For Windows NT
The main problem is allowing the java application to find the classes that it needs under the userid that the trigger monitor it is executing under. A perl script can insert the path(s) required into the classpath environment variable and execute your java application. The script should look something like this...
$addPath = "c:\javadev1\;";
$currPath = $ENV{"CLASSPATH"};
$ENV{CLASSPATH} = $addPath.";".$currPath;
exec 'java', 'MQJavaApp'; |
|
Back to top |
|
 |
vedbhat |
Posted: Mon Apr 29, 2002 6:48 pm Post subject: |
|
|
 Disciple
Joined: 19 Mar 2002 Posts: 186 Location: Singapore
|
Hi,
Create a batch file which will set the classpath and then launch the java appln.
Cheers
Ved
_________________ IBM Certified Solutions Expert - MQSeries Workflow
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
deneb |
Posted: Tue Apr 30, 2002 2:43 pm Post subject: |
|
|
 Novice
Joined: 15 Apr 2002 Posts: 18
|
Hi
hey the batch file was a pretty good idea. i think dotjas and vedbhat seem to be telling the same thing.
let me try it
how silly of me
deneb |
|
Back to top |
|
 |
deneb |
Posted: Wed May 01, 2002 10:45 pm Post subject: |
|
|
 Novice
Joined: 15 Apr 2002 Posts: 18
|
Hi
the trigger worked.
i put the following in the cmd file in win2K
java GetMsg
Application type = WinNT
Thnx to the answer to this query |
|
Back to top |
|
 |
|