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 » IBM MQ Java / JMS » Trigger Java

Post new topic  Reply to topic
 Trigger Java « View previous topic :: View next topic » 
Author Message
deneb
PostPosted: Tue Apr 16, 2002 8:35 pm    Post subject: Reply with quote

Novice

Joined: 15 Apr 2002
Posts: 18

Hi

any example of a trigger executing a java code
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
dotjas
PostPosted: Mon Apr 29, 2002 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vedbhat
PostPosted: Mon Apr 29, 2002 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
deneb
PostPosted: Tue Apr 30, 2002 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
deneb
PostPosted: Wed May 01, 2002 10:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Trigger Java
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.