Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2006
Sameerrele's Avatar
Sameerrele 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
Reply With Quote
  #2 (permalink)  
Old 09-25-2006
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: 976
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
Reply With Quote
  #3 (permalink)  
Old 09-25-2006
Sameerrele's Avatar
Sameerrele 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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does IceBox support services implemented in python zephyr007 Comments 3 01-23-2008 09:22 AM
IceBox hosting java services in IceGrid Sameerrele Help Center 5 08-21-2006 11:56 AM
Purify and IceBox services xdm Help Center 4 06-07-2006 04:59 PM
Share endpoint between services in IceBox rspivak Help Center 2 04-14-2006 07:18 AM
Sincronithing services xdm Help Center 4 01-16-2004 02:59 PM


All times are GMT -4. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.