Archived

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

<target>: how to deploy?

Can somebody explain with how the <target> tag in a descriptor file should be actually deployed? The manually just says that the target should be specified in an icegridadmin command, and generally refers to section 38.20.1, but I'm afraid that isn't too revealing...

Thanks in advance
Bertwim

Comments

  • benoit
    benoit Rennes, France
    Hi Bertwin,

    If you have the following descriptor for example:
    <icegrid>
      <application name="Simple">
        <node name="localhost">
          <server id="SimpleServer" exe="./server" activation="on-demand">
    	<adapter name="Hello" endpoints="tcp" register-process="true">
    	  <object identity="hello" type="::Demo::Hello" property="Identity"/>
    	</adapter>
            <target name="debug">
                <property name="Ice.Trace.Network" value="1"/>
                <property name="Ice.Trace.Protocol" value="1"/>
            </target>
          </server>
        </node>
      </application>
    </icegrid>
    

    You can deploy the application with the following command to setup the server with the content of the "debug" target:
       $ icegridadmin --Ice.Config=config
       >>> application add application.xml debug
    

    Or, if the application is already deployed and you want to update it to use the debug target:
       $ icegridadmin --Ice.Config=config
       >>> application update application.xml debug
    

    Note that targets are specific to XML files and the IceGrid admin command line utility. You can't use targets with the IceGrid admin GUI or programatically with the IceGrid::Admin interface.

    Cheers,
    Benoit.