Results 1 to 3 of 3

Thread: IceBox Determining Dependent Services

  1. #1
    Sameerrele's Avatar
    Sameerrele is offline Registered User
    Name: Sameer Rele
    Organization: TRG
    Project: SOA
    Join Date
    Aug 2006
    Location
    New York
    Posts
    18

    IceBox Determining Dependent Services

    Hello,

    I am deploying my Ice services (service1, service2, service3) within IceBox.

    I would like to determine within my implementation objects (extending from Ice.ObjectImpl) to determine the dependency of services within each other.

    Eg. When Service2 is being started ( callback start() ) it should ensure that service1 is already started and that when service3 is started it should detect that the services 1 and 2 are started.

    I understand that IceBox.LoadOrder will ensure that for me, however I would like to determine that programatically.

    Also, within each service I can keep a list of dependent services within endpoint and get ObjectPrx by doing stringToProxy() and then ice_ping(). However, for doing so I would have to pass end points aswell. I do not wish to do so. I just want to check in service2 if the service1 is previously loaded.

    Your help in this matter is appreciated.

    Thanks
    Sameer Rele
    Global Enterprise Solutions Architect

    The Rohatyn Group
    280 Park Avenue, 27th Floor - West
    New York, NY 10017
    Tel : (212) 984 2946
    sameer.rele@rohatyngroup.com

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    If your services all used the shared communicator, they could each set a property to indicate that they have been loaded, and those properties could be checked by the other services.

    If each service has its own communicator, you'll need to use an application-specific mechanism to verify that the services have been loaded. For example, you could use a singleton object that tracks the installed services.

    Hope that helps,
    - Mark

  3. #3
    Sameerrele's Avatar
    Sameerrele is offline Registered User
    Name: Sameer Rele
    Organization: TRG
    Project: SOA
    Join Date
    Aug 2006
    Location
    New York
    Posts
    18
    Thank you for your prompt reply and appreciate your suggestions.

    I am currently using shared communicator
    IceBox.UseSharedCommunicator.ServiceManager=1

    Setting up a property at the service level and checking for the same is what I had incorporated. I was looking for a sleeker solution

    Thanks for the help.

    Regards
    Sameer Rele
    Global Enterprise Solutions Architect

    The Rohatyn Group
    280 Park Avenue, 27th Floor - West
    New York, NY 10017
    Tel : (212) 984 2946
    sameer.rele@rohatyngroup.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I run two services in a single icebox?
    By Gravitas in forum Help Center
    Replies: 3
    Last Post: 03-02-2011, 05:30 PM
  2. IceBox + services in subfolders
    By dmitry.medvedev in forum Help Center
    Replies: 3
    Last Post: 10-10-2008, 02:30 AM
  3. invocation between two services in the IceBox
    By drumnbass in forum Help Center
    Replies: 3
    Last Post: 03-05-2008, 06:32 AM
  4. Purify and IceBox services
    By xdm in forum Help Center
    Replies: 4
    Last Post: 06-07-2006, 03:59 PM
  5. Share endpoint between services in IceBox
    By rspivak in forum Help Center
    Replies: 2
    Last Post: 04-14-2006, 06:18 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
  •