RE: startup time deployments
"Guijarro, Julio" <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Sanjay, You can deploy as many descriptors as you want when a daemon starts. There are two ways of doing this: 1.- Deploy 1 or more descriptors every time a ProcessCompound is created (Daemon and Subprocesses): You need to define env variables with the following format: -Dorg.smartfrog.sfcore.processcompound.sfDefault.NAME=".../description.s f" Where NAME will be used to name your description. This is the way default.sf is deployed every time a new ProcessCompound is created using: -Dorg.smartfrog.sfcore.processcompound.sfDefault.sfDefault="%SFHOME%\bin \default.sf" 2. All the scripts are simplified versions of the SFSystem command line. When you start a daemon you can specify the descriptions that you want to load in the same way you do with sfStart but you will need to modify the scripts and use the full command line notation: -a NAME:ACTION:SFREF:SUBREF:HOST:PROCESS Or using -f file To do this you can modify smartfrog.bat or smartfrog scripts in the following way: Add following line after the call to setSFProperties: if defined SFDEFAULTSF set SFCMDPARAMETERS=%SFCMDPARAMETERS% %SFDEFAULTSF% Add following line before org.smartfrog.SFystem: -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess Smartfrog.bat should look like this: //------------------------ @echo off setlocal if defined SFHOME goto continue1 if exist "%cd%\smartfrog.bat" cd .. set SFHOME=%cd% cd bin :continue1 call "%SFHOME%\bin\setSFProperties" if defined SFDEFAULTSF set SFCMDPARAMETERS=%SFCMDPARAMETERS% %SFDEFAULTSF% rem echo %SFCMDPARAMETERS% rem echo java -Dorg.smartfrog.iniFile=%SFHOME%\bin\default.ini org.smartfrog.SFSystem %1 %2 %3 %4 %5 %6 %7 %8 %9 %SFJVM% %SFCMDPARAMETERS% -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess org.smartfrog.SFSystem %1 %2 %3 %4 %5 %6 %7 %8 %9 endlocal //------------------------ Check the user manual for more information on the command line syntax or type "smartfrog -?" Once modified try for example: smartfrog -f "org/smartfrog/examples/configurationdescriptor/example.sfcd" You could use several -a xxx.sf instead of the list provided in the .sfcd file. Julio > -----Original Message----- > From: smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog- > [email protected]] On Behalf Of Dahiya, Sanjay (STSD) > Sent: 28 November 2005 11:33 > To: Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > Subject: [Smartfrog-support] startup time deployments > > Hi > > I have a set of descriptors which I want to deploy every time > Smartfrog daemon starts up, without explicitly calling sfStart. Is > there a way I can specify these descriptors somewhere and smartfrog > loads it by default. > > thanks > Sanjay > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Smartfrog-support mailing list > Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/smartfrog-support ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click