I’m customizing my OpenCms installation and have created an object that delivers part of my content. The object changes this content once in an hour. Could you please advise me as to how to load this bean at OpenCms startup so that it resides in memory and is able to set up its timer?
I’m customizing my OpenCms installation and have created an object that delivers part of
Share
After some hours of research and testing I’ve discovered two ways of doing it:
1) define the class as the Action class of the module – I haven’t tested this approach
2) use job scheduler available in the administration layer – this is what I tried and it works fine. You need to create a class that implements I_CmsScheduledJob interface, eg:
I hope this can help someone!