Results 1 to 3 of 3

Thread: Ice && crob jobs

  1. #1
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    Ice && crob jobs

    Hello guys

    I interesting in a service of cron jobs via Ice

    Code:
    class MySubscriber extens IceCronSubscriber 
    {
      virtual exec();
    }
    
    
    MySubscriber mySubscriber;
    mySubscriber->dayly(true);
    mySubscriber->monthly(true);
    
    IceCron->subcribe(mySubscriber);
    have Ice plans of do same thing similar to it?
    thanks

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    No, we don't have any plans to implement this, but it should be pretty straightforward to write something like this yourself

  3. #3
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172
    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!

    regs,

    Stephan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice::Plugin && Ice::LoggerPlugin
    By Andrew in forum Help Center
    Replies: 1
    Last Post: 10-02-2008, 02:02 PM
  2. Replies: 13
    Last Post: 05-08-2008, 08:38 AM
  3. visual Studio & ice 3.0 & Global Assembly Cache
    By loheron in forum Help Center
    Replies: 7
    Last Post: 11-23-2006, 07:39 AM
  4. Replies: 22
    Last Post: 02-07-2006, 08:12 AM
  5. Using ICE in .NET 1.1 && .NET 2.0
    By dmitry.medvedev in forum Help Center
    Replies: 8
    Last Post: 01-27-2006, 03:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •