From: Jeff E. <jem...@fr...> - 2005-05-11 17:01:43
|
What have you defined True to be? This works for me: True="True" while True: print True Perhaps the loop code is throwing an exception. You could wrap it in try,except. while True: try: msg = ... except: pass Jean Guillaume LALANNE wrote: > Hi, > > I am trying to do an infinite loop in my jython code but it does not seem to > work. > ___________________________________________________________________ > while True: > msg = storeProcedureCaller.dequeueChangeDocCreationMsg() > print "ID : " , msg.getId() > ___________________________________________________________________ > > returns me always : > ______ > "True" > ______ > > And stop running...?????? > I don't understand. > > Thanks a lot for your help. > > Best Regards > > Jean-Guillaume > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |