Re: How to work with arrays in Smartfrog?
"Shrishailappa Awanty, Ambika (STSD)" <[email protected]> Wed, 20 Sep 2006 12:03:10 +0530
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <35F72B76D6E41B4F8B56A0098D96738CA5AB52@bgeexc06.asiapacific.cpqcorp.net> |
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 -----Original Message----- From: Guijarro, Julio Sent: Wednesday, September 13, 2006 8:10 PM To: Andreas Unterkircher; Shrishailappa Awanty, Ambika (STSD) Cc: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 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. It uses a particular pattern to name all the children: "ch-"+hostname or "app-"+hostname Julio > -----Original Message----- > From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:smartfrog- developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf > Of Andreas Unterkircher > Sent: 13 September 2006 12:41 > To: Shrishailappa Awanty, Ambika (STSD) > Cc: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > Subject: Re: [Smartfrog-developer] How to work with arrays in Smartfrog? > > In our sfOpenlabTools we have a component MultiDeployFromVector which > probably does what you want. I cite it's description: > > /** > * 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=0,1,2,... > */ > > 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 > > There you find a link to the sfOpenlabTools documentation as well to > our CVS (you can checkout the code if you want). > > Best regards, > Andreas > > 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=lnk&kid=120709&bid=263057&dat=12 > > 1642 _______________________________________________ > > Smartfrog-developer mailing list > > Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer > > > > > ---------------------------------------------------------------------- > --- 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=lnk&kid=120709&bid=263057&dat=1216 > 42 _______________________________________________ > Smartfrog-developer mailing list > Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/smartfrog-developer ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV