dev@glassfish.java.net

[v3] application information registered in domain.xml now

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Thu, 21 Feb 2008 11:18:36 -0500

I have just checked in changes to register application information in
the domain.xml. This replaces the previous "props" mechanism in v3 to
register application information.

The application will now be registered as a generic "application"
element with following form (this will evolve as we go forward). The new
"application" element is intended to fit our converged application model
in v3. Each "engine" sub-element represents one component of the
application targeted for a particular container.

<!ELEMENT applications (application*) >
<!ELEMENT application (description?, engine+, property*)>
<!ATTLIST application
   name CDATA #REQUIRED
   location CDATA #REQUIRED
   context-root CDATA #IMPLIED
   object-type %object-type; "user"
   enabled %boolean; "true"
   libraries CDATA #IMPLIED
   availability-enabled %boolean; "false"
   directory-deployed %boolean; "false">
<!ELEMENT engine (description?, property*)>
<!ATTLIST engine
   sniffer CDATA #REQUIRED>

The "application" element will be registered in the domain.xml once we
successfully load the application to the container(s).

Notes:
1. We plan to keep the existing sub-elements of the "applications"
element such as "web-module" in domain dtd for upgrade scenario. Upgrade
scenario will need to be thought through.

2. As the web container currently has dependency on WebModule config
bean, we register a web-module element in the domain.xml for standalone
web module as well. We will stop doing that once the web team removes
this dependency.

Thanks,

- Hong