Home Help Center

Ice && crob jobs

xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
Hello guys

I interesting in a service of cron jobs via Ice
class MySubscriber extens IceCronSubscriber 
  virtual exec();

MySubscriber mySubscriber;


have Ice plans of do same thing similar to it?


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    No, we don't have any plans to implement this, but it should be pretty straightforward to write something like this yourself :)
  • stephanstephan Member Stephan StapelOrganization: Stephan StapelProject: BristolNG
    The simpliest solution is:
    You might remove a potential waitForShutdown() in your application code but add a while() loop instead which invokes certain operations after certain periods of time.
    It gets a little bit more complicated when using Windows services: As there is no true main function for these type of applications, you can create a separate thread which then runs the while() loop.
    The last and probably heaviest variant would be to mimic the CORBA services for this task: Create a time service which uses IceStorm for transmitting it's timing signals and register your object to the corresponding event channel!


Sign In or Register to comment.