From: Guijarro, J. <jul...@hp...> - 2006-09-13 14:38:07
|
You can find a similar component in the examples: "org/smartfrog/examples/arraycompound/example.sf" This component is very simple and it will deploy all the new components as independent applications in no parent is provided or as children of parent if any is provided.=20 It uses a particular pattern to name all the children: "ch-"+hostname or "app-"+hostname Julio > -----Original Message----- > From: sma...@li... [mailto:smartfrog- > dev...@li...] On Behalf Of Andreas Unterkircher > Sent: 13 September 2006 12:41 > To: Shrishailappa Awanty, Ambika (STSD) > Cc: sma...@li... > Subject: Re: [Smartfrog-developer] How to work with arrays in Smartfrog? >=20 > In our sfOpenlabTools we have a component MultiDeployFromVector which > probably does what you want. I cite it's description: >=20 > /** > * Can be used to deploy multiple instances of a component which just > differ by the value of one string attribute. > * Takes a LAZY reference to another component which is assumed to have > the string attribute "attribute". The entries in the vector "values" are > values for this attribute. > * Loops over the vector "values" and deploys "component" by setting > the "component"'s attribute "attribute" to the current vector entry. > * "component" is being deployed into the same compound under the name > "componentBaseName"X where X=3D0,1,2,... > */ >=20 > For more information have a look at: > http://openlab-mu-internal.web.cern.ch/openlab-mu-internal/openlab- > I_Projects/opencluster/SmartFrog/SmartFrog_main.asp >=20 > There you find a link to the sfOpenlabTools documentation as well to our > CVS (you can checkout the code if you want). >=20 > Best regards, > Andreas >=20 > Shrishailappa Awanty, Ambika (STSD) wrote: > > Hi , > > Following is my problem. > > I have to deploy the same component of multiple nodes in the network > > where smartfrog daemon is already runinng. How can I achieve this with > > Arrays in smartfrog. In the array I want to keep all the list of hosts > > on which I want to deploy the component. > > Thanks help in advance. > > > > Thanks and Regards, > > Ambika > > > > ------------------------------------------------------------------------ > - > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > > _______________________________________________ > > Smartfrog-developer mailing list > > Sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer >=20 >=20 >=20 >=20 > ------------------------------------------------------------------------ - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > _______________________________________________ > Smartfrog-developer mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer |