From: fabcipriano <nu...@jb...> - 2005-08-11 15:02:04
|
This is a try to unify hot deployment and jsr88. Getting ideas from this forum. This implemetation(http://jira.jboss.com/jira/browse/JBAS-2114) passed in all deployment tests: URLDeploymentScanner now launch 3 events: URL_DEPLOYMENT_FAILED, URL_DEPLOYMENT_DEPLOYED and URL_DEPLOYMENT_UNDEPLOYED DeploymentManagerService.startService(): listen for URLDeploymentScanner evants and config scanner to scan uploadDir distribute() -> DeploymentManagerService --> upload file and rename it to "file".tmp to be ignored by URLScanner start() -> DeploymentManagerService --> rename file upload to original name to be deployed by scanner stop() -> DeploymentManagerService --> rename file to "file".tmp to be undeployed by scanner undeploy() -> DeploymentManagerService --> delete "file".tmp getAvailableModules() -> DeploymentManagerService --> union of modules deplyed by this service and the MainDeployer list except modules deployed by jsr88 Restritions and TODOs: - make mores tests to validate list union - make tests to validate deployments that failed - make sanner return ignored files case of JBoss server shutdown this form stopped modules can be recovered - config scanner in DeploymentManagerService.startService() to ignore a jsr88 extention file ex. ".jsr88stopped" - make tests about start/stop modules that was deployed using MainDeployer View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889542#3889542 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889542 |