Re: How to work with arrays in Smartfrog?
Andreas Unterkircher <[email protected]> Wed, 13 Sep 2006 13:41:28 +0200
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Organization | CERN |
| Message-ID | <[email protected]> |
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=121642 > _______________________________________________ > 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=121642