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 Installation/Configuration Support » Trigger Application

Post new topic  Reply to topic
 Trigger Application « View previous topic :: View next topic » 
Author Message
jason_e
PostPosted: Wed Sep 03, 2003 9:16 pm    Post subject: Trigger Application Reply with quote

Apprentice

Joined: 19 Aug 2003
Posts: 33

Hi,
I have a Java application that must be run for every new message
on a queue. I have setup triggering and started the trigger monitor.

The trigger fires but the Java program does not run correctly. I don't
call the Java program directly but instead call a batch file that changes
to the right directory and then runs the program.

I seems that the program doesn't work because the current directory is
not what it whould? How can I change the current/working directory of an
application that must be started by a trigger.

Regards,
Jason
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Sep 03, 2003 10:41 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Instead of changing the direcories in the batch file have you tried giving the complete path of the program?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
vennela
PostPosted: Thu Sep 04, 2003 6:10 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

The other way is to set the CLASSPATH.
In the CLASSPATH specify the directory where the java class that you intend to call is located (and any other necessary directories).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Trigger Application
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.