wood burning stoves 2.0*
The moose likes Websphere and the fly likes Trigger a cron Job when a message is put in queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Trigger a cron Job when a message is put in queue" Watch "Trigger a cron Job when a message is put in queue" New topic
Author

Trigger a cron Job when a message is put in queue

Arun Kathare
Greenhorn

Joined: Oct 02, 2006
Posts: 19
HI I am working on WMQ related application, where I need to perform
How do I trigger a corn job when a request message is put in a queue.

Thanks In Advance
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Arun,
I assume you mean a cron job? A cron job is triggered by time, not external events. If you wanted to use cron, you'd need to have it poll regularly (by time) to see if the queue is empty. It would be better to have code listening on the queue that does what you want - or calls the UNIX script - when a message is put on the queue.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Arun Kathare
Greenhorn

Joined: Oct 02, 2006
Posts: 19
I have proposed a solution of preparing MDB and then execute the cron job from it. But they came back saying there are few settings that can be done in WMQ 7 which could trigger a cron job.
Can any one help me .
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Again, you are not executing a cron job from MQ or anywhere else. You are executing a UNIX script or something else.
 
Consider Paul's rocket mass heater.
 
subject: Trigger a cron Job when a message is put in queue
 
Similar Threads
Quartz Triggers re-firing before the last Job has completed execution...
WA #1.....word association
Trigger for MDB
Timer
How to propogate Configuration changes to different servers