Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

serverStartup.pdf

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Chargement dans…3
×

Consultez-les par la suite

1 sur 6 Publicité
Publicité

Plus De Contenu Connexe

Plus récents (20)

Publicité

serverStartup.pdf

  1. 1. Bootstrap Digester ServerLifecycleLis... GlobalResourcesLife... SecurityConfig Catalina Bootstrap Digester ServerLifecycle Listener GlobalResources LifecycleListener SecurityConfig initClassLoaders() parse server.xml MBeans #1Catalina.load() Catalina initDirs() initNaming() initialize() newInstance() setParentClassLoader() load() createDigester() parse() newInstance() newInstance() newInstance() setPackageDefinition() setPackageAccess() File: C:Documents and SettingsAdministratorDesktopTomcat_5_UML.mdl 3:05:37 PM Monday, December 16, 2002 Sequence Diagram: Logical View / 1. catalina_load Page 1
  2. 2. Catalina StandardServer StandardService CoyoteConnector CoyoteAdapter Http11Protocol JkCoyoteAdapter Catalina StandardServer StandardServic e CoyoteConnect or CoyoteAdapter Http11Protocol JkCoyoteAdapt er initialize() initialize() initialize() new() new() init() new() init() #2 Catalina.initialize() File: C:Documents and SettingsAdministratorDesktopTomcat_5_UML.mdl 3:05:37 PM Monday, December 16, 2002 Sequence Diagram: Logical View / 2. catalina_initliaze Page 2
  3. 3. Bootstrap Catalina StandardServer StandardService StandardEngine StandardHost StandardPipeline Bootstrap Catalina StandardServer StandardServic e StandardEngine StandardHost StandardPipeline start() start() fireLifecycleEvent(BEFORE_START_EVENT) fireLifecycleEvent(START_EVENT) start() fireLifecycleEvent(BEFORE_START_EVENT) fireLifecycleEvent(START_EVENT) start() fireLifecycleEvent(BEFORE_START_EVENT) addDefaultMapper() logger.start() realm.start() findMappers() findChildren() start() fireLifecycleEvent(BEFORE_START_EVENT) addDefaultMapper() start() logger.start() findMapper() findChildren() #1 Catalina.start() fireLifecycleEvent(BEFORE_START_EVENT) fireLifecycleEvent(START_EVENT) fireLifecycleEvent(AFTER_EVENT) All StandardX will fire these events. File: C:Documents and SettingsAdministratorDesktopTomcat_5_UML.mdl 3:05:37 PM Monday, December 16, 2002 Sequence Diagram: Logical View / 3. catalina_start Page 3 (1, 1)
  4. 4. StandardHost HostConfig StandardHostDeployer Digester ContextRuleSet NamingRuleSet StandardHost HostConfig StandardHostDeployer Digester ContextRuleSet NamingRuleSet fireLifecycleEvent(START_EVENT) interested[i].lifecycleEvent() setDeployXML() setLiveDeploy() setUnpacksWar() setXMLValidation() deployDescriptors() install() install() create() parse() new() new() add(ContextRuleSet) add(NamingRuleSet()) #2 Catalina.start() deployApps() install() install() // same as above File: C:Documents and SettingsAdministratorDesktopTomcat_5_UML.mdl 3:05:37 PM Monday, December 16, 2002 Sequence Diagram: Logical View / 4. catalina_start_2 Page 5
  5. 5. Digester Rule StandardContext StandardPipeline StandardContextV... SetPropertiesRule SetNextRule Digester Rule StandardContext StandardPipeline StandardContext Valve SetPropertiesRule SetNextRule parse startElement() begin() newInstance() begin() setBasic(StandardContextValve) new() //Using BeanUtil, set the object properties (from ex: admin.xml) end() HostConfig.deployDescriptor() #3 Catalina.start() File: C:Documents and SettingsAdministratorDesktopTomcat_5_UML.mdl 3:05:37 PM Monday, December 16, 2002 Sequence Diagram: Logical View / 5. catalina_start_3 Page 6 (1, 1)
  6. 6. Digester StandardHostDeplo... StandardHost StandardContext WebappLoader StandardManager ContextConfig StandardWrapper Digester StandardHostDe ployer StandardHost StandardContex t WebappLoader StandardManag er ContextConfig parse startElement() addChild addChild start() new setLoader new setManager fireLifecycleEvent(START_EVENT) // Notify interested LifecycleListeners start() defaultConfig() applicationConfig() start() create() // Process web.xml * tld.xml StandardWrapp er createWarpper() // Invoked by a WebWrapperRule (not Directly by the Digester) new addInstanceListener() addLifecycleListener() addContainerListener() Deploy App. File: C:Documents and SettingsAdministratorDesktopTomcat_5_UML.mdl 3:05:37 PM Monday, December 16, 2002 Sequence Diagram: Logical View / 6. catalina_start_4 Page 8 (1, 1)

×