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 » using trigger on MQseries 5.3 for inviking java prog.

Post new topic  Reply to topic
 using trigger on MQseries 5.3 for inviking java prog. « View previous topic :: View next topic » 
Author Message
geniemani
PostPosted: Wed May 07, 2003 5:45 am    Post subject: using trigger on MQseries 5.3 for inviking java prog. Reply with quote

Newbie

Joined: 05 May 2003
Posts: 8

hi,
it is said that the trigger option in queues can be used for
invoking a specific java file which will process the incoming message....
how to go about this... since i dont want a java file to be polling continuously to the queue ... would be gr8 if the same would be invoked
on every incoming msg...

thnx
_________________
visit http://www.geniemani.com
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
vennela
PostPosted: Wed May 07, 2003 6:14 am    Post subject: Reply with quote

Jedi Knight

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

Yes you can do that.
You have to set the trigger on the queue....
define a process and run the trigger monitor. For detailed instructions refer o the manuals
Chapter 14 in Application Programming guide.

GOOD LUCK

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Martin Rusoff
PostPosted: Sun May 18, 2003 11:08 am    Post subject: Triggering and some alternatives Reply with quote

Newbie

Joined: 24 Jun 2002
Posts: 2
Location: Columbus Ohio

In general, triggering java programs works fine, but with a couple of caveats...
-- Java startup tends to be a bit slow and resource intensive (a couple at the same time is awful.
-- There are some bugs that may cause you to have to run the java code with the JIT turned off, particularly with MQSeries 5.3 and AIX JVMs prior to 1.4 (we haven't tested 1.4 as we are running a pre-5 version of AIX and cannot.
-- It really doesn't take any resources to speak of to have your application wait on the get (which is a specifiable parameter. If the rest of the application needs to keep running while waiting, you can make it a thread... There are seomk significant advantages to the latter approach, such as being able to listen to more than one queue or be able to notice that you haven't had messages for a while.

We usually have a shell script that kicks off the java program and also logs the fact that it kicked off, when it terminated and handles redirecting the STDIO and STDERR to the right places (a log) and then scans the logfile for errors and emails if we found any. This also can provide a smarter way to disable the trigger by having the script check for a file like "TRIGGER_NAME.disable". This way it can be enabled and disabled be a program, say part of your installation script for production changes WITHOUT fiddling with the MQSeries configuration in production.

-Mrrtin Rusoff, Info-Scape Ltd.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » using trigger on MQseries 5.3 for inviking java prog.
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.