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 » WebSphere Message Broker (ACE) Support » Message Flow Start & Stop with crontab

Post new topic  Reply to topic
 Message Flow Start & Stop with crontab « View previous topic :: View next topic » 
Author Message
bullaydin
PostPosted: Wed Aug 22, 2007 11:09 pm    Post subject: Message Flow Start & Stop with crontab Reply with quote

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
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Wed Aug 22, 2007 11:24 pm    Post subject: Re: Message Flow Start & Stop with crontab Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 22, 2007 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bullaydin
PostPosted: Thu Aug 23, 2007 1:14 am    Post subject: Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » Message Flow Start & Stop with crontab
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.