Re: HELP DEPLOY
Flávio Roberto Santos / Projeto Ourgrid <flaviors-y04Q/[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
rana dabbu wrote:
>hello,
> Having a ComponentDescription, how can i deploy it using API's.
>
>regards,
>rana
>
>
>
Hi rana...
You have to create a context object with the wished parameters:
Context context = new ContextImpl();
context.put(key1, value1);
context.put(key2, value2);
...
In the next, you have to invoke the sfDeployComponentDescription (your
class should be a CompoundImpl object). The syntax is:
sfDeployComponentDescription(name, parent,
(ComponentDescription) your component description, context);
These are the basic steps...
Bye!
Flávio
>-------------------------------------------------------
>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
>
>
>
--
Flavio Roberto Santos
Undergraduate Student in Universidade Federal de Campina Grande
OurGrid Team Member - www.ourgrid.org
Webpage - http://www.dsc.ufcg.edu.br/~flaviors
--
"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."
-- Albert Einstein
-------------------------------------------------------
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