RE: HELP DEPLOY
"Guijarro, Julio" <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <8D5B24B83C6A2E4B9E7EE5FA82627DC9A43C61@sdcexcea01.emea.cpqcorp.net> |
Hi Rana, You can also check this thread in the lists archives: http://news.gmane.org/gmane.comp.java.smartfrog.user/cutoff=72 Title: "Component Deployment." The right method to use for deploying and stating a description is sfCreateNewChild() This method deploys the description and calls and guards the sfDeploy and sfStart lifecycle steps in the new component. You use sfDeployComponentDescription only when you want to control the calls to the lifecycle methods. To create a component description you can: - Create the component description at runtime as Flavio described. - Get the component description for a "extend LAZY" or "DATA" structure from your description - Get the component description reading a smartfrog file from somwhere: ex "xxx.sf" using the method: org.smartfrog.sfcore.componentdescription. ComponentDescriptionImpl.sfComponentDescription (String url). (Remember that if you are using securith then the .sf file has to be in a properly signed jar file.) Julio NB: Reminder, the lists archives with RSS feeds are available at: http://news.gmane.org/search.php?match=smartfrog > -----Original Message----- > From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog- > developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Sabharwal, Ritu (STSD) > Sent: 28 April 2005 08:52 > To: rana dabbu > Cc: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > Subject: Re: [Smartfrog-developer] HELP DEPLOY > > Hello Rana, > > To create a new component from a Compound class, we have to call > sfDeployComponentDescription(): > > The syntax of sfDeployComponentDescription is: > > sfDeployComponentDescription(name, parent, (ComponentDescription) your > component description, context); > > Here parent paramter has be some compound component (itself or some > other compound) or some processcompound (local or remote rootProcess). > In each case, call sfDeployComponentDescription() with the appropriate > component as parent paremeter from sfStart(). > > Please check Spawn example under examples/spawn for reference. > > Thanks, > Ritu. > > > > rana dabbu wrote: > > >hello , > > I have obtained the context through call to sfContext() > in > >ComponentDescriptionImpl. The problem is, I am getting > >nullpointerexception when trying to use > >null in place of parent in the call to sfDeployComponentDescription. > >what is this parent parameter and how to obtain it. > > > >regards, > >rana > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Tell us your software development plans! > >Take this survey and enter to win a one-year sub to SourceForge.net > >Plus IDC's 2005 look-ahead and a copy of this survey > >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix > >_______________________________________________ > >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: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > 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: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix