Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2006
xdm's Avatar
xdm xdm is offline
ZeroC Staff
 
Name: José Gutíerrez de la Concha Martínez
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Sep 2003
Location: La Coruña, Spain
Posts: 292
Icebox descriptor

Hi i have an IceBox file descriptor like this

Code:
<icebox id="FileService"
	exe="/opt/Ice-3.0.1/bin/icebox"
	activation="on-demand">
			
 <service name="Files" entry="Files:create">
	<adapter name="${service}" endpoints="tcp">
		<object 
			identity="FileServer/FileServer" 
			type="::Oz::Files::FileServer"/>
	</adapter>
 </service>
</icebox>

how my service can retrieve the value of objects add to adapter when it start?


what i try to do is retrieve the id "FileServer/FileServer" and if object not exist create it. is this posible or must i add and extra property and use it inside <object/> and retrive via communicator->getProperty()?

thanks
Reply With Quote
  #2 (permalink)  
Old 01-24-2006
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Jose,

You need to add an extra property to your service configuration.

The <object> descriptor is used only when the service is deployed on a node (within an icebox server), to register the object with the IceGrid registry.

<object> does not add any property to the generated Ice configuration, and the registration with the IceGrid registry occurs just at deployment time--not each time the icebox server starts.

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
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
Patch for escaping deployment descriptor variables benoit Patches 0 04-04-2005 05:26 PM
IceStorm service descriptor istvan Help Center 4 10-31-2003 10:55 AM


All times are GMT -4. The time now is 10:59 PM.


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