Home Help Center

Icebox descriptor

xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
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

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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
Sign In or Register to comment.