Hello !
I am developping an application which use IceGrid. I would like to be able to update the IceGrid configuration, without change manually the XML file. I would like that my application do this automatically (throws command automatically) ? Is that possible ?
For exemple to create a new replica-group, a new serveur template with an adaptor... just with icegridadmin commands.
I read the "administration utilities" in the documentation but I didn't see commands for add objects, just for list and update them.
I discover the IceGridGUI.jar tool, it is possible to do all what I want ! But it is not automatisable, it is a GUI.
The third solution is to developp a tool which will update the XML file and than throw the command icegridadmin "application update file.xml", but it is not so practical.
What solutions are feasible and the best ? Is there any other solution ?
Thank you for your help !
Cheers,
Matthieu
Here my initial XML file :
<icegrid>
<application name="Simple">
<replica-group id="Rserv_point">
<load-balancing type="adaptive"/>
<object identity="affpoint" type=":emo::Caracteristique"/>
</replica-group>
<server-template id="templ_point">
<parameter name="index"/>
<parameter name="exepath" default="java"/>
<server id="serv_point${index}" exe="${exepath}" activation="on-demand">
<option>Serverpoint</option>
<property name="Ice.MessageSizeMax" value="1000000000"/>
<adapter name="Aserv_point" endpoints="tcp" register-process="true" replica-group="Rserv_point"/>
</server>
</server-template>
<node name="node_serv_point_1">
<server-instance template="templ_point" index="1" exepath="java"/>
</node>
<node name="node_serv_point_2">
<server-instance template="templ_point" index="2" exepath="java"/>
</node>
</application>
</icegrid>

emo::Caracteristique"/>
Reply With Quote