Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trigger a cron Job when a message is put in queue

 
Arun Kathare
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Arun Kathare
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, you are not executing a cron job from MQ or anywhere else. You are executing a UNIX script or something else.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic