工作笔记

HowtocleanuninstallTIBCOstuffonwin32?

C:\ProgramFiles\CommonFiles\InstallShield

C:\DocumentsandSettings\Michael\.TIBCO

C:\DocumentsandSettings\Michael\.TIBCOEnvInfo

HowtoAddremoteMachinewithBWDU?

1.Installrv,tra,adminononemachine.

2.Start<TIBCO_HOME>/administrator/domain/<DOMAIN_NAME>/bin/tibcoadmin_<DOMAIN_NAME>

Start

<TIBCO_HOME>/tra/domain/<DOMAIN_NAME>/hawkagent_<DOMAIN_NAME>

3.Installrv,tra,bwontheothermachine.

4.Start

<TIBCO_HOME>/tra/5.7/bin/domainutility,notethataddadminip

betweenprotocolandport,thenclickdiscoverdomainbutton

5.Start

<TIBCO_HOME>/tra/domain/<DOMAIN_NAME>/hawkagent_<DOMAIN_NAME>

HowtobuildAMXContainers?

yangxm@zhangx-dt-1:~/sfdev/SFAMX/scripts$ant-fcontainers.xml-Ddist.dir=dest

HowtobuildAMXDistribution?

yangxm@zhangx-dt-1:~/sfdev/SFAMX/scripts$ant-fsetup.xml-Ddist.dir=dist

createcommon/scripts/base.properties

copytargetinstallertodownloaddiraccordingto<product>_common.properties

yangxm@zhangx-dt-1:~/sfdev/SFAMX/scripts$ant-famsg_linux24gl23_x86_64.xml

createSFAMX/distribution/amsg/scripts/amsg.properties

makeaspecicalplatformdistribution,

yangxm@zhangx-dt-1:~/sfdev/SFAMX/distribution/amsg/scripts/ant-fbuild.xml

makealldistributions,soyouneedtocopyallinstallers

yangxm@zhangx-dt-1:~/sfdev/SFAMX/scripts$ant-fdistributions.xml

HowtobuildBWDistribution?

step1.D:\silverfabric\scripts>ant-fsetup_solaris_x86.xml

1)(optional)modifybase.properties

2)createinstall,download,distdiroutsideofrootdir,scriptdoen'tcreatethemautomatically.

3)updateallparamentersinreleatedbw_5.9.2_sol8_x86.xmlanditsdependentxml

step2.D:\silverfabric\scripts>ant-fbw_5.9.2_sol8_x86.xml

thenallproductpropertiesarecreated.

step3.D:\silverfabric\bw\scripts>ant-fdistribution.xml

NOTE1:Afteryoubuildsuccessfully,youMUSTdeletethestuffremainedintibcohome

bash-3.00$rm-rf/tibco/uudidev/InstallShield/Universal/*

or

/tibco/uudidev/InstallShield/tibco/uudidev/.TIBC*

otherwise,you'llrunintofollowingerror

....................................................................................

bw.distribution.update.install.info:

[echo]/tibco/uudidev/sfdev/scripts/../../install

BUILDFAILED

/tibco/uudidev/sfdev/bw/scripts/distribution.xml:75:/tibco/uudidev/install/_installInfodoesnotexist.

....................................................................................

NOTE2:Whenyourun/tibco/uudidev/sfdev/scripts/build_bw_distributions_rollup.xml

Ifyou'reusingant1.7aboveversion,forexample,ant1.8,youmustaddforce="true"to/tibco/uudidev/sfdev/admin/scripts/distribution.xml121.

<copyfile="${root}/adminExtension/index.jsp"tofile="${installation.root}/administrator/${admin.version}/tomcat/webapps/ROOT/index.jsp"overwrite="true"force="true"/>

Oryouwouldratherassigneallwriterightstocheckedoutcode.

......................................................................................

admin.distribution.package:

[copy]Copying1fileto/tibco/uudidev/install/administrator/5.7/tomcat/webapps/ROOT

BUILDFAILED

/tibco/uudidev/sfdev/admin/scripts/distribution.xml:123:Failedtocopy/tibco/uudidev/sfdev/adminExtension/index.jspto/tibco/uudidev/install/administrator/5.7/tomcat/webapps/ROOT/index.jspduetocan'twritetoread-onlydestinationfile/tibco/uudidev/install/administrator/5.7/tomcat/webapps/ROOT/index.jsp

......................................................................................

HowtomakeantscriptsandBuildEJBBTdistribution?

step1.You'dbettermannuallyinstallallrelatedproducts,andrecordallsettingsfirst.

step2.Createfollowingthreefilesdistributions/scripts:

ejbbt.xml

ejbbt_setup.xml

ejbbt_common.properties

Checkifejbbt_setup.xmlneedtoaddorremovepropertyandvaluesaccordingtostep1settings.

step3.Createbuild.xmlandcopyaresponsefiletoejbbt/scriptsdirfromstep1.

Checkifbuild.xmlneedtoaddorremovepropertyandvaluesaccordingtostep2settings.

step4.Runtct,inputemsurl,Cilckontheurlonconfigureparel,finishconfigure.

step5.Stoptibcohost.

~/AMXEJBBTTEST/data/tibcohost/Admin-amxadmin-instanceOne/host/bin$./tibcohoststop-waittrue

tibcohostspawn(daemon)

tibochoststart(blocking)

youcanusepsuxftoverifytheprocessstopped.

NOTE:amsg3.0.0aboveinstallationneedhibernateassemblies,ifdownloadspeedistooslow,

addassemblypathtosilentinstallfile

/var/share/TIBCO/AMX/assembly_tibco_com_tibco_tpcl_org_hibernate_feature_3.2.400.001.zip

NOTE:Aftereveryinstallation,includemainproductanditsdependency,youmustremove

TIBCO_HOMEdir,./InstallShield,.TIBCOand.TIBCOEnvInfo

NOTE:Ifinstallationfailed.gotochecklogat.TIBCO

NOTE:InstallShieldand.TIBCOEnvInfobothhaveinstallationinfo.Ifanyproductsonceinstalled,

youcan'tinstallagaininsilentmode,butcanreinstallinGUImode.

NOTE:amsgsilentinstallprofilejustremainAdministration,sodoesejbbtsilentinstallprofile.

HowtoinstallBWSE?

step1.Installrv

PriortousingtheTIBCORendezvous-TheInformationBus(tm)software,makesurethat/home/yangxm/install/tibrv/8.3/binisinyourpath.Youshouldalsoensurethat/home/yangxm/install/tibrv/8.3/libisinyourLD_LIBRARY_PATH.

RVpostInstall

PriortousingtheTIBCORendezvous-TheInformationBus(tm)software,makesurethat/home/yangxm/remoteHost/tibrv/8.3/binisinyourpath.Youshouldalsoensurethat/home/yangxm/remoteHost/tibrv/8.3/libisinyourLD_LIBRARY_PATH.

step2.Installbwseadmin,selectsametibcohomeofrv.

TIBCOActiveMatrixBusinessWorksServiceEngine-UNIXPostInstallationSteps

Performthefollowingsteps:

OpentheTIBCO_HOME/tibcohost/3.1/scripts/node_classpath_3.1.2.trafile.

Fortibco.env.PATH,addtheTIBCO_HOME/tibrv/8.3/binpathasfollows:

tibco.env.PATH=TIBCO_HOME/tibrv/8.3/bin;TIBCO_HOME/tibcojre/...

Basedonyourplatform,addtheTIBCO_HOME/tibrv/8.3/libpathtotheenvironmentvariables:

tibco.env.LD_LIBRARY_PATH

tibco.env.SHLIB_PATH

tibco.env.LIBPATH

ForUNIX64bitplatform,addthepathTIBCO_HOME/tibrv/8.3/lib/64:TIBCO_HOME/tibrv/8.3/libtotheaboveenvironmentvariables.

step3.configureEMSandadminservertofinish.

NOTE:Ifyouranintoissue,youjustneedtoremove/home/yangxm/TH2/data/tibcohost,thenrunand-fbuild.xmlunder~/TH2/data/tct/tibcohost/2011-10-17-10-45-07/scripts

step4.gotohttp://silver-1:8120/amxadministrator/loginForm.jsp

NOTE:InthecaseyousetupasecondRuntimeHostwithoutRVandBWSE,whenyourunTCTtocreateTIBCOHostInstance,makesureyouaddhostnameandipmappingtoadmin/etc/hostsfile.Otherwise,youmayrunintoJMXconnectionissue.

NOTE:deploylogisatlog/home/yangxm/TIBCO_HOME/data/tibcohost/Admin-amxadmin-instanceOne/nodes/SystemNode/logs/SystemNode.

HowtoinstallBWSEinSilverFabric?

Preparetheworkdirectory,butnotconfigurethem.

step0.Extractdistributionofamsg

step1.Youmustensurealltheexecutablesat/home/yangxm/install/tibrv/8.3/binareaccessible

step2.RungenMachineMode

ant-f-f/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx/tools/scripts/sync-machine-model.xml-Dcomponent.store.name=shared-Dcomponent.store.version=1.0.0-Dtibco.home=/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx

step3.RunPost-Install

UNIXPostInstallationSteps

Performthefollowingsteps:

OpentheTIBCO_HOME/tibcohost/3.1/scripts/node_classpath_3.1.2.trafile.

Fortibco.env.PATH,addtheTIBCO_HOME/tibrv/8.3/binpathasfollows:

tibco.env.PATH=TIBCO_HOME/tibrv/8.3/bin;TIBCO_HOME/tibcojre/...

Basedonyourplatform,addtheTIBCO_HOME/tibrv/8.3/libpathtotheenvironmentvariables:

tibco.env.LD_LIBRARY_PATH

tibco.env.SHLIB_PATH

tibco.env.LIBPATH

ForUNIX64bitplatform,addthepathTIBCO_HOME/tibrv/8.3/lib/64:TIBCO_HOME/tibrv/8.3/libtotheaboveenvironmentvariables.

step4.Copytcttotibco_homerootandrunit.Selectatarget<workingdir>/data,updateadministratorserverporttobasePort+engineInstanceNum

or

java-cp/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx/tools/lib/antpackage.jarorg.apache.tools.ant.launch.Launcher-f/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx/tibcohost/3.1/scripts/post-install.xml-Dtibco.home.esc=/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx-Dtibco.wrapper.extension=-Dtibco.jvm.lib.server.esc=/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx/tibcojre64/1.6.0/lib/amd64/server/libjvm.so-Dtibco.java.home.esc=/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx/tibcojre64/1.6.0/-Dtibco.home=/home/yangxm/sf/DSEngine/work/silver-1-1/tibcoamx-Dtibco.component.store=shared/1.0.0

Youcanseenewpluginaddedto

/tibcohost/RemoteHost/tools/machinemodel/machine.xmi

step5.Startexecutabletibcohostindatadir.

step6.Visithttp://silver-1:8080/amxadmin/amxadministrator/admin.jsp

HowtodeployDAA?

step1.ClickonSharedObjects,NewaResourceTemplate,inputnameandport.Done.

step2.ClickonthetemplateyoucreateandthenNewResourceInstances.Selectanavailablenode,saveandinstall.

step3.ClickonInfrastructure,selecthost,thenselectResourceInstanceforspecialtype,makesureit'sinstalledsuccessfully.

step4.Newanapplication,inputaname,uploadDAA,selectnode,nexttofinishwithdefaultsetting.

step5.ClickonPropertiesofapplication,selectthetemplateyoucreateinstep2forPropertyValue.

Ifyouinstallanotherruntimehostinsamemachine,youmustassignanothertibcohomeandhomename.

step1.Afteryouinstallthesecondruntimehost,youneedtostarttcttoconfigure.Inputthishostnameandadminmachinename.

step2.Loginadmin,navigatetoInfrastructure->Hosts,ensureyourRuntimehostappear.

step3.NewanodeforyournewhostinInfrastructure->Nodes.InstallandstartthisNodeatlast.

NOTE:IfyoudirectlystartapplicationsuccessfullywithoutstarttingthisNode,youcan'tstartnodesuccessfully

,youmuststoptherunningapplicationfirst.thenstartnode.

step3.InSharedOjbects,Newaresourcetemplate,thenNewaResourceInstanceAddavailablenodesthenclickonSaveandinstall.OrgotoInfrastructure,clickonResouceInstancetab,clickonAllInstances,installinstance.

step4.StoparunningappinApplication,edititsProperties,updatepropertyvaluetothenewcreatedresourcetemplate,save.

step5.Deploythisapplicationandstart.

NOTE,Ifyourapplicationdependsonotherfeature,suchasBWSE,

YouMUSTdeployBWSEtothesamenodethatyourapplicationistobedeployed.GotoApplicatoin,clickon

TIBCOActiveMatrixBusinessWorksServiceEngine,clickontabDistribution,addAvailablenodetoSelectednode.

NOTE,IfyourapplicationdependsonRV,afterdeploydaa,startaRVlisterner,andRVsender,

startrvdaemonon192.168.71.4first,

yangxm@silver-1:~/tibco/tibrv/8.3/bin$./rvd64

thenstartrvlisterandclient

[spsap@RHEL5bin]$./tibrvlisten-service7500-daemon192.168.71.4:7500testhello

[spsap@RHEL5bin]$./tibrvsend-service7500-daemon192.168.71.4:7500testhello

-------------------CodeSummary----------------

DistributionInstallandpostinstall

D:\cloudteam\SFAMX\amxcontainerdev\src\main\java\com\tibco\sf\container\amx\DistInstallAction.java

AdminandtibcohostcontainereachhasaFullLifeCycleMode

D:\cloudteam\SFAMX\amxcontainerdev\src\main\java\com\tibco\sf\container\amx\th\FullCycleMode.java

D:\cloudteam\SFAMX\amxcontainerdev\src\main\java\com\tibco\sf\container\amx\admin\FullCycleMode.java

Mainentry

D:\cloudteam\SFAMX\amxcontainerdev\src\main\java\com\tibco\sf\container\amx\th\AmxTibcohostContainer.java

D:\cloudteam\SFAMX\amxcontainerdev\src\main\java\com\tibco\sf\container\amx\AbstractAmxContainer.java

HowtoinstallEMSinSilentmode?

step1.ExtracttheTIBCOEnterpriseMessageServiceproductarchiveTIB_ems_5.1.5_linux26gl23_x86.tartoa

temporarydirectory.

step2.EditTIBCOUniversalInstaller.silent,updatefollowingitemtoyourowndir.

<entrykey="installationRoot">/home/yangxm/EMS</entry>

<entrykey="configDirectoryRoot">/home/yangxm/tibco_cf</entry>

step3.IfyouareusingtheTIBCOUniversalInstaller.silentfile(ratherthanacopy),youneednotsupplythefilenameandcanusethiscommandline:

./TIBCOUniversalInstaller.bin-silent

Ifyouwanttoredirectsilentinstalllogtoafile,use-is:log<file_path/file>

step4.Startemsserver.

NOTE1:Ifyou'reusing64bitos,startwithtibemsd64,on32bitos,startwithtibemsd.Ifyoustart

withwrongexecutivefile,you'llseeNosuchfileordirectory.

NOTE2:Allprogrammeclientstartindynamicallyway,soyoumustspecifyconfigfilewhenyoustartemsserver.Instaticway,noneedtospecifyconfigfile.

yangxm@zhangx-dt-1:~/EMS/ems/5.1/bin$./tibemsd64-config"/home/yangxm/ems/emsConfig/tibco/cfgmgmt/ems/data/tibemsd.conf"

HowtouseTIBCOSFforAMX?

step1.deployallgridlibs

SilverFabric_amsg3x_3.1.3_linux24gl23_x86_64_distribution_gridlib.zip

SilverFabric_tibcoamxadmin_component.type_1.0.0.zip

SilverFabric_tibcoamxadmin_container_1.0.0_gridlib.zip

SilverFabric_tibcoamxruntime_component.type_1.0.0.zip

SilverFabric_tibcoamxruntime_container_1.0.0_gridlib.zip

step2.createtwocomponents,amxruntimeandamxadmin

amxruntimedependsonadmin

step3.updateEMSconfiguration,ifnon-ssl,justmodifyurlisok.

1.checkSSLEnabled

2.SetEMSserver

ssl://192.168.67.39:7243,username:admin,passwordblank

3.Uploadtruststore

youcanfindtheemsservercertificateathttp://svn.tibco.com:8008/cloud/trunk/Silver/SFAMX/CLI/my_ems_cert.pem.andifyoudon'twantyourowntruststore,youcanusethisone,http://svn.tibco.com:8008/cloud/trunk/Silver/SFAMX/CLI/keystore.trust,whichalreadyhastheemsserverpublickeyimported.

NOTE1:Ifyoueveruploadatrust.keystoretobroker,anddidn'tremoveitinnone-SSLemsmode.

09/22/1115:04:21.067INFO:[ProcessWrapper][STDOUT]create-dir-structure:

09/22/1115:04:21.167INFO:[ProcessWrapper][STDOUT][copy]Copying117filesto/home/yangxm/DSEngine/work/zhangx-dt-1-1/tibcoConfigHome/admin/amxadmin/samples

09/22/1115:04:21.209INFO:[ProcessWrapper][STDOUT][copy]Copying1fileto/home/yangxm/DSEngine/work/zhangx-dt-1-1/tibcoConfigHome/admin/amxadmin/samples

09/22/1115:04:21.210INFO:[ProcessWrapper][STDOUT][copy]Copying1fileto/home/yangxm/DSEngine/work/zhangx-dt-1-1/tibcoConfigHome/admin/amxadmin/private/instanceOne

09/22/1115:04:26.287INFO:[ProcessWrapper][STDOUT][CreateCLITrustStoreTask]ERROR-ErrorincreatingthetruststoreforAdminCLIjava.lang.NullPointerException:invalidnullinput

09/22/1115:04:26.326INFO:[ProcessWrapper][STDERR]

09/22/1115:04:26.327INFO:[ProcessWrapper][STDERR]BUILDFAILED

09/22/1115:04:26.327INFO:[ProcessWrapper][STDERR]/home/yangxm/DSEngine/work/zhangx-dt-1-1/scripts/tct-admin-headless/build.xml:12:Thefollowingerroroccurredwhileexecutingthisline:

09/22/1115:04:26.327INFO:[ProcessWrapper][STDERR]/home/yangxm/DSEngine/work/zhangx-dt-1-1/tibcoamx/administrator/3.1/scripts/instance-mgmt.xml:129:Failedonerror

09/22/1115:04:26.327INFO:[ProcessWrapper][STDERR]

09/22/1115:04:26.327INFO:[ProcessWrapper][STDERR]Totaltime:8seconds

NOTE2:Ifyoudidn'tstartEMSdynamically(with-config"*.conf"),you'llrunintobelowissueduringstartAMXadmincomponent

09/22/1116:20:10.086INFO:[ProcessWrapper][STDOUT]start:

09/22/1116:20:10.453INFO:[ProcessWrapper][STDOUT][hpa.tibcohost.Start]StartingTIBCOHost.

09/22/1116:20:10.557INFO:[ProcessWrapper][STDOUT][hpa.tibcohost.Start]StartedTIBCOHost.

09/22/1116:20:15.072INFO:[ProcessWrapper][STDOUT][hpa.tibcohost.Start]TIBCO-AMX-HPA-CLI-000141:Thetibcohostprocessfailedtostart.OSexitcode232.Trycallingthetibcohostexecutabledirectlywiththeargument--debugtocollectmoreinformation.VerifythelocationandaccessibilityoftheJVMlibraryin/home/yangxm/DSEngine/work/zhangx-dt-1-1/tibcoamx/tibcohost/3.1/scripts/tibcohost_classpath_3.1.3.tra.

HowtouseTIBCOSFBW?

step1.Openthephysicalmediaordownloadthepackage.Sample:TIB_sfbw_1.0.0_win_x86.zip

step2.Extractthecontentsofthepackagetoatemporarydirectory.

step3.Navigatetothetemporarydirectory.

step4.RunTIBCOUniversalInstallertoopenTIBCOUniversalInstaller,afterinstallation,

allbwgridlibsareextractedtoadirnamedgridlibs.Youcanskipthesesteps,straight

usetheexistinggridlibsat\\atlas\TIBCO\TIBCOBWContainer\gridlibs

step5.CopythealldistributionsandcontainersZIPfilestothefollowingdirectory:

cp*.zip<SILVERFABRIC_HOME>/webapps/livecluster/deploy/resources/gridlib/

step6.CreateNewTIBCOAdministratorcomponentandBusinessWorkscomponentatApplication->Components->"GlobalActions"dropdownlist

step7.Editadministratorcomponentandthenadd"ADMINMACHINE"tovalueofDOMAIN_RV_DAEMONandDOMAIN_HAWK_DAEMON,addyourowndomainname.(ItmeansmodifyDOMAIN_RV_DAEMON,DOMAIN_HAWK_DAEMON,andTIBCO_DOMAIN_NAMEthreeruntimevariablesvalueasbelow)

DOMAIN_RV_DAEMON(fromadministrator-qapcx02-0)Environmenttcp:ADMINMACHINE:7500

DOMAIN_HAWK_DAEMON(fromadministrator-qapcx02-0)Environmenttcp:ADMINMACHINE:7474

TIBCO_DOMAIN_NAME(fromadministrator-qapcx02-0)EnvironmentyourDomain

step8.Clickon"Add/removearchivefiles"toupload\\atlas\TIBCO\TIBCOBWContainer\processOrder.zipinapplicationcomponentwizardofBWcomponent.

step9.Startapplicationtorunningstatus,visit

URL:

Ifyourmachinecanbeonlyaccessedviaengineip,youneeddirectlyvisithttp://<engineIP>:<httpPort+instanceNumber>

Ifyourmachinecanbeaccessviabroker,youmustuseurlasbelow:

http://<brokerIP>:<Port>/<DomainName>/administrator/servlet/tibco_administrator

sample:

http://qa52:8080/myDomain/administrator/servlet/tibco_administrator

tovisittheprossOrderappyouupload,engineipistheenginerunningbwcomponent.

http://<brokerIP>:8080/<DomainName>/<bwComponentName>/?order=

sample:

http://192.168.128.136:8080/myDomain/bwCom/?order=122444

#http://<engineIP>:<httpPort>/<DomainName>/<bwComponentName>/?order=

http://<engineIP>:<httpPort+instanceNumber>/?order=12245

sample:

engineinstance0:http://192.168.128.67:8200/?order=122444

engineinstance1:http://192.168.129.36:8201/?order=122444

TRAhome:

/opt/qa/engine/stress0/DSEngine/work/qa82-1/tibcobw/tra/5.7/bin

usefultools:AppMange-start/stoptostartorstopapplication

Apphome:

/opt/qa/engine/stress0/DSEngine/work/qa82-1/fabric/tibcobw/procs/6233160domaindata/tra/myDomain/application/ProcessOrder/

Tomcatbin:

/qa82-0/tibcobw/administrator/5.7/tomca/qa82-1/tibcobw/tpcl/5.7/tomcat

[qa@qa82bin]$ps-aef|grepbwengine

stress0315171106:58?00:00:26/opt/qa/engine/stress0/DSEngine/work/qa82-1/tibcobw/bw/5.9/bin/bwengine--pid--run--propFile/opt/qa/engine/stress0/DSEngine/work/qa82-1/domaindata/tra/myDomain/application/ProcessOrder/ProcessOrder-Process_Archive.tra--innerProcess

bwcomponent:

07/21/1106:41:26.966INFO:[ProcessWrapper]Executing:/opt/qa/engine/stress0/DSEngine/work/qa82-0/tibcobw/tra/5.7/bin/domainutilitycmd,-cmdFile,/opt/qa/engine/stress0/DSEngine/work/qa82-0/domaindata/AddMachine.xml

bwcompoennt:qa82-1/tibcobw/tra/5.7/template/domainutility

admincomponent:qa82-1/domaindata/tra/myDomain/AuthorizationDomain.properties

HowtoDebugEngine?

step1.SetDebugStartPort,9100inEngineconfiguration

step2.SelectRun/DebugConfiguration,sethostandport,ifyouhavefourinstances,setseparatedlistenningportforeveryinstance,9100,9101,9102,9103,starttolistenallports.

step3.Selecttargetmodulesouceindropdownlistforeveryattachedclient.

step4.Startapplicationandwaittotrackrunningcode.

---------------------------

Lifecylemethod

---------------------------

0.WorkDirectoryPreparation.TheprepareWorkDirectory()iscalled.todeleteworkandarchivedirectoriesthatmayexistfromapreviousfailedactivation,copyallfirst-levelGridLibrarydependenciestotheworkdirectory,andinstallthecontentfilesto

1.doInit()methond'simplementationscanthereforeusethismethodforinitialsetupofrequireddirectorystructures.ORTosetadditionalvariablestobeusedatruntime,youneedtogetRuntimeContextVariableandFeatureInfofromspecifiedinconfigure.xml,thenaddittoList<RuntimeContextVariable>.

2.ContentConfiguration

TheContainerfilesareconfigured,asspecifiedintheconfigure.xmlfile,andtheconfigureContainer()methodiscalled.

3.ContainerStart

ThedoStart()methodiscalledfortheactualContainerstartup,remembertosolveportsConflict.

4.ComponentInstallation

ThedoInstall()methodiscalledtoinstalltheApplicationComponentintotheContainer,followedbytheactivate()methodintheDomainclass.

6.TheContainerisactivatedandtheComponentisrunning.

7.ComponentUninstallation

Thedeactivate()methodoftheDomainclassiscalled,followedbythedoUninstall()methodoftheContaineriscalledtouninstalltheApplicationComponent.

8.ContainerShutdown

ThedoShutdown()methodiscalled;itisresponsibleforshuttingdowntheContainer.

9.Cleanup

Thecleanup()methodiscalledanddeletestheworkdirectory.Subclassescan

optionallyoverridethismethodtoperformanycontainer-specificcleanup,such

asdeletionofruntimefilesordirectories.

Container.xml

Thecontainer.xmlfilecontainsthedefinitionoftheruntimeJARclasses,andtheirproperties.Essentially,thisfilerepresentstheContainerpersistedinXML.TheContainerWizardintheSilverFabricAdministrationTooldisplaysandmodifiesthecontainer.xml.WhenthisfileisreadbytheEngine,theContainerobjectisconstructedandconfigured.

------------------------------------------------------------------------------

<propertyname="name"value="TomcatContainer"/>

<propertyname="distributionVersion"value="5.6"/>

andcontainer

<grid-library-name>tomcat6-distribution</grid-library-name>

<grid-library-version>5.6</grid-library-version>

anddistribution

<grid-library-name>tomcat6-distribution</grid-library-name>

<grid-library-version>5.6</grid-library-version>

mustmatch

相关推荐