Re: Doubt about dynamic deployment

Ritu Sabharwal <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Organization HP
Message-ID <[email protected]>
To deploy a component as child of some Compound parent you can use the 
method directly from a class that inherits CompoundImpl:

sfCreateNewChild(Object name, Prim parent, ComponentDescription cmp, 
Context parms)

Parameters: 
name - name for the child
parent: parent of deployed component
cmp - compiled component to deploy and start
parms - parameters for description

Please check Spawn and ArrayCompound examples under examples/spawn and examples/arraycompound for reference.

Please check the similar thread in lists archive also:
http://news.gmane.org/gmane.comp.java.smartfrog.user/cutoff=72

Title: "Component Deployment."

Regards,
Ritu.

Gustavo Wagner D Mendes / Pos. COPIN wrote:

>Hello all.
>
>  We have a doubt about the dynamic deployment. Let's imagine there is a
>component called "A", already deployed on SmartFrog. We also have a
>component named "B" (not deployed yet), that we want it to be a child of
>component "A". "A" does not have a LAZY reference to "B" in its description.
>Is it possible for "B" to be a child of "A" without "A" previously knowing of
>"B" existence? 
>
>  Thanks a lot,
>
>     Gustavo and Alisson
>
>                #############################################
>                #       GUSTAVO WAGNER DINIZ MENDES         #
>                #       Graduado pela UFCG                  #
>                #       Curso: Ciência da Computação        #
>                #       Mestrando pela COPIN-UFCG           #
>                #     * Integrante do projeto OurGrid       #
>                #        Fones: (83)88246910 / 32358355     #
>                #                   33333453                #
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by:
>Tame your development challenges with Apache's Geronimo App Server. Download
>it for free - -and be entered to win a 42" plasma tv or your very own
>Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
>_______________________________________________
>Smartfrog-developer mailing list
>Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
>  
>




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.