[jboss-dev-forums] [Design of POJO Server] - Re: Hot deploying deployers - deployer chains

scott.stark@jboss.org do-not-reply at jboss.com
Tue Sep 19 12:40:45 EDT 2006


"adrian at jboss.org" wrote : "scott.stark at jboss.org" wrote : 
  |   | Second, explain how the tree is used given a DeploymentContext representing an ear with the full contigent of javaee components, and customized aspects like security and logging.
  |   | 
  | 
  | But to answer your question (in brief), the Deployment(Context)
  | is structurally analyzed (I assume no predetermined managed objects)
  | into its javaee components which determines the metadata location.
  | 
  | This metadata location identifes a list of configuration files
  | -security.xml, -logging.xml (besides the javaee files).
  | 
  | These are matched to the deployer chains.
  | 
  | e.g. The -security.xml might create an application policy that is
  | added to the metadata repository
  | 
  | Input=-security.xml
  | Output=real
  | When=some ordering after the metadata repository context is constructed
  | 
  | e.g. A log4j.xml might create a scoped (based on classloader)
  | logging configuration
  | 
  | Input=log4j.xml
  | Output=real
  | When=some ordering after the classloader
  | 
  | The chains are more important when you have flows like the
  | rar deployer:
  | 
  | ra.xml -> rar metadata -> servicemetadata -> mbean
  | rar parser -> rar deployer -> servicedeployer -> real
  | 
  | The reason to split the rar parser from the rar deployer is
  | that:
  | 1) The rar parser is not required for predetermined metadata
  | 2) Some other parser/deployer earlier in the list can construct
  | the rar metadata for deployment from some other mechanism
  | and use the later rar deployer to do the real work

I agree that structure mapping and even metadata parsing need to be distinct phases of the deployment model. These are needed for the profile service behavior that maps to the jsr88 function, as well as supporting the introduction of aspects that can affect the metadata.

I'm not clear on exactly how the input is described and utilized as a key one can use to obtain the correct starting point for a query to the MainDeployer. Input can be anything from vfs path patterns to concrete metadata classes. 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972662#3972662

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972662



More information about the jboss-dev-forums mailing list