Posted: Sat Mar 18, 2006 1:07 am Post subject: doubt in triggering
Newbie
Joined: 07 Mar 2006 Posts: 7
Say I want the message reaching the MQ on the Windows platform from a MF to trigger a Java application.
What is the standard practice in coding for triggering in Java? 1. Is it advicable to define a trigger monitor and let that run the Java application
or
2. am I suppose to code my application in a such a way that the application polls the queue on a continuous basis to sense the message which has come in and trigger the application automatically?
Which of these is a best practice or recommended practice?
It REALLY depends on what you are trying to achieve and what your environment is. If you are running in a Web Application Server you might want to consider a Message Driven Bean (MDB).
If you truely want a triggered program have a look at www.nynjmq.org and more specifically at http://www.nynjmq.org/Triggering%20the%20right%20Java%20Environment.zip
Enjoy _________________ MQ & Broker admin
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