From: Shrishailappa A. A. (STSD) <amb...@hp...> - 2006-09-20 06:33:51
|
Hi , Thanks for the help, I got the solution to my problem. I was busy in other work so I couldn't reply to the mail. Thanks and Regards, Ambika =20 -----Original Message----- From: Guijarro, Julio=20 Sent: Wednesday, September 13, 2006 8:10 PM To: Andreas Unterkircher; Shrishailappa Awanty, Ambika (STSD) Cc: sma...@li... Subject: RE: [Smartfrog-developer] How to work with arrays in Smartfrog? 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...=20 > [mailto:smartfrog- dev...@li...] On Behalf=20 > 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=20 > 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=20 > have the string attribute "attribute". The entries in the vector=20 > "values" are values for this attribute. > * Loops over the vector "values" and deploys "component" by setting=20 > the "component"'s attribute "attribute" to the current vector entry. > * "component" is being deployed into the same compound under the=20 > 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=20 > 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=20 > > 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=20 > > 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=20 > > 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= 12 > > 1642 _______________________________________________ > > 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,=20 > 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=20 > Apache Geronimo > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 1216 > 42 _______________________________________________ > Smartfrog-developer mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer |