|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Flow Start & Stop with crontab |
« View previous topic :: View next topic » |
Author |
Message
|
bullaydin |
Posted: Wed Aug 22, 2007 11:09 pm Post subject: Message Flow Start & Stop with crontab |
|
|
Apprentice
Joined: 16 Feb 2006 Posts: 25 Location: Germany
|
Hi all,
I have two different message flow and they must be started and stopped at nights ( in Suse Linux Entr. Server), for that reason I have scheduled these flows in crontab. But I receive the following error.
"
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/util/MessageFlowControl
"
In console , I can start and stop them. I assume that the reason is environment variables or something else... don't know..
any idea ?
thanks in advance
Bulent _________________ *************************
" Sharing knowledge better than having it ."
http://www.openpoint.de |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 22, 2007 11:24 pm Post subject: Re: Message Flow Start & Stop with crontab |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bullaydin wrote: |
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/util/MessageFlowControl
|
I'd theorise that the classpath used by the cron job is not the same as the one used from the console and has a few missing entries. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 22, 2007 11:31 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you need to set / reset all the environment variables. Best bet is to create a script that would "source" the environment before executing your stuff.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bullaydin |
Posted: Thu Aug 23, 2007 1:14 am Post subject: |
|
|
Apprentice
Joined: 16 Feb 2006 Posts: 25 Location: Germany
|
hi,
I've changed my crontab to set environment and seems to be ok..
here is the my crontab definition ;
Code: |
30 11 * * * bash --login /opt/ibm/mqsi/6.0/bin/mqsistopmsgflow -b BROKER -e testExec -m test -i 192.168.1.80 -p 1414 -q QMBROKER 2>&1 1>>/tmp/Flow_Log.cron |
thanks
bulent _________________ *************************
" Sharing knowledge better than having it ."
http://www.openpoint.de |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|