Archived

This forum has been archived. Please start a new discussion on GitHub.

Icebox descriptor

xdm
xdm La Coruña, Spain
Hi i have an IceBox file descriptor like this
<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

Comments

  • bernard
    bernard Jupiter, FL
    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