Index of /ProgramDocuments/deployment

      Name                    Last modified       Size  Description

[DIR] Parent Directory 26-Dec-2003 19:40 - [   ] AutoDeployer.java 17-Jan-2004 17:50 14k [   ] AutoDeployerMBean.java 17-Jan-2004 17:50 1k [   ] DeployerMBean.java 17-Jan-2004 17:50 1k [   ] DeployerMBeanSupport..> 17-Jan-2004 17:50 5k [   ] Deployment.java 17-Jan-2004 17:50 8k [   ] DeploymentException...> 17-Jan-2004 17:50 1k [   ] DeploymentNotificati..> 17-Jan-2004 17:50 3k [   ] Installer.java 17-Jan-2004 17:50 1k [   ] InstallerFactory.java 17-Jan-2004 17:50 10k [   ] J2eeApplicationMetaD..> 17-Jan-2004 17:50 3k [   ] J2eeDeployer.java 17-Jan-2004 17:50 25k [   ] J2eeDeployerMBean.java 17-Jan-2004 17:50 1k [   ] J2eeDeploymentExcept..> 17-Jan-2004 17:50 1k [   ] J2eeModuleMetaData.java 17-Jan-2004 17:50 3k [   ] LegacyInstaller.java 17-Jan-2004 17:50 22k [   ] LocalDirInstaller.java 17-Jan-2004 17:50 9k [   ] URLWizzard.java 17-Jan-2004 17:50 9k [   ] Util.java 17-Jan-2004 17:50 2k [DIR] scope/ 25-Jul-2008 10:55 -

J2EE Deployer read me

Google

J2EE Deployer

by Daniel Schulze

The idea

The j2ee deployer is made to delpoy j2ee compilant applications which means .ear, ejb.jar and web.war files as well.

This MBean references the org.jboss.ejb.ContainerFactoryBMBean and org.jboss.tomcat.EmbededTomcatServiceMBean. Both beans have to run in the same server and since the deployer in his start service method tries to deploy all apps that were deployed before shutdown, these both services must be started before the j2ee deployer! To make this sure, there must be a service entry for the j2ee deployer in the jboss.dependencies file.


How it works

deploy ()
The deployer takes the given url and tries to determine the type of the given file (this is done by seeking one of the possible deployment descriptors in this file for the deployment needed files (modules, libs, alternative DDs, ...) are downloaded to a local directory of the app server. Once this is done the ejb and war deployers (ContainerFactory and EmbeddedTomcat) are called to deploy the single modules.
If this was successful, the current url is stored to the deployments collection. If one of the ejb/war deployer calls fails, the deployment becomes canceled and all downloaded files are deleted.
isDeployed ()
Looks in the collection of deployments for the given url. If the url is found, the ejb/war deployer for each module of this app is asked for isDeployed () and only if all modules are correct deployed, the method returns true. If there is an inconsistence in the deployments an exception is thrown.
undeploy ()
Undeployes all modules of this application,removes all server local files of this app and removes this url from the collection of deployed urls. (This method should always succeed).


What is done

  • download of ejb.jar and web.war modules
  • deployment of these modules
  • isDeployed () - method added to ContainerFactory
  • extracting web.wars on download


What is to do

  • replacing module DDs with alternative DDs
  • integrity check in case of ear files
    • unify security roles
    • things I ve missed ...
  • find common libraries, download them and add them to the classpath(s) of the modules
  • move the verification stuff from the ContainerFactory to here?