Re: How to work with arrays in Smartfrog?

"Guijarro, Julio" <[email protected]> Wed, 13 Sep 2006 15:39:46 +0100
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
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=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
> _______________________________________________
> 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