Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: future
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
t would be useful to have Loom scan the apps directory and deploy applications from xml descriptors as well as the .sar files. The xml descriptor could specify all the required parameters for an application rather than having Loom deduce them from the .sar file.
For example it could look something like
<application name="foo" protected="true">
<homeDirectory>/some/dir</homeDirectory>
<workDirectory>/tmp</workDirectory>
<assembly>/opt/myapp/assembly.xml</assembly>
<config>/opt/myapp/config.xml</config>
<environment>/opt/myapp/environment.xml</environment>
<resources>
<!-- map some container resources into
blocks context -->
<resource key="keyUsedByBlocks"
name="nameInKernel"
type="javax.jmx.MBeanServer"/>
<resources>
<!-- see excalibur-loader project for format of this -->
<classpath ... />
</application>
The deployer would then handle either xml files or .sar files.
The advantage of this would be that it makes it easy to allow alternative deployment formats which is useful when you are developing an IDE and don't want to rebuild sar in each development cycle. It is also useful when integrating with existing systems that have particular filesystem requirements.
For an example system that implements something like this have a look at the Tomcat 4.1 product
I think it would be useful to specify the resources in a separate file. the idea being that once created, the "application definition" file wouldn't need to change