[Design of POJO Server] - Deployment Structure
by adrian@jboss.org
This is a summary to try to end the discussions that are currently going
around in circles.
The basic idea follows the "do one thing well principle".
There are three components:
1) VFS - responsible for presenting the different protocols as a
single consistent file system, and abstracting away things like
unpacked directories pretending to be jars or unpacking nested jars.
2) StructureDeployers - responsible for determining the structure
of deployments, i.e. what is the classpath, metadata location
and subdeployments.
3) Deployers reponsible for working with the above models
to deploy stuff.
In no way should:
1) The VFS be dealing with deployment decisions.
2) The structure deployers be dealing with protocol issues.
3) The real deployers be dealing with protocol or structural issues.
I can think of one current exception to this rule where the
jboss-service.xml has an
<archives/>
that adds additional elements to the classpath.
In future, there is likely to be some form of aspectized
classloader.xml that will take the place of this element
and the loader-repository-config which can be processed by
the structure deployers such that this can be deprecated
and removed as the legacy mixing of concerns that it is.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974913#3974913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974913
18 years, 3 months
[Design of POJO Server] - Re: Updating docs
by adrian@jboss.org
"scott.stark(a)jboss.org" wrote :
| I believe you, but its not clear how the dependecies are going to be added. If I have simple deployers parsing annotations and descriptors to build the metadata instance graphs, there needs to be a resolution phase for references that can introduce the approriate dependency as a by product of resolving the reference to the ejb, queue, datasource, etc.
|
P.S. I didn't say it would easy. This is one reason why I didn't
complete the MetaData stuff since it needs some real world
implementation/usage to flush out all the details.
The basics seem easy to me?
real deployer -> decide scopes (mutable and full)
metadata deployer -> populate ad hoc metadata at the defined scope
The part that is hard (especially when you get the kind of
ad hoc, ill thought out rules in the javaee specs) is:
user deployer -> process the metadata from this full scope into some bean
deployment that can take part in the dependency mechanism
The staged deployers help since all the real deployers
(defining the scopes) and metadata deployers (populating the metadata)
are done before the user deployers are run.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974892#3974892
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974892
18 years, 3 months