[opencms-dev] ScheduledJob is gone after Tomcat restart

Felix Glade-Beucke felix.glade-beucke at componio.net
Thu Feb 17 18:23:48 CET 2011


Perfect! Thank you very much.
That solved my problem.



>> What you missed is to write back the OpenCms System configuration.
>> Scheduled jobs are written to the opencms-system.xml, take a look at if 
>> after you added a scheduled job with the Admin interface.
>> 
>> So you should add
>> 
>>    OpenCms.writeConfiguration(CmsSystemConfiguration.class);
>> 
>> to your code, then your job should be saved as well and will survive a 
>> tomcat restart.
>> 
>> -- 
>> Kind Regards,
>> Michael.
>> 
>> -------------------
>> Michael Emmerich
>> 
>> Visit OpenCms Days 2011 Conference and Expo
>> May 9 to May 10 2011 in Cologne, Germany
>> http://www.opencms-days.org
>> 
>> Alkacon Software GmbH  - The OpenCms Experts
>> http://www.alkacon.com - http://www.opencms.org
>> 
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 



More information about the opencms-dev mailing list