Hot Deployment
Hot Deployer Configuration
| Code Block |
|---|
|
<Call name="addLifeCycle">
<Arg>
<New class="org.mortbay.jetty.deployer.ContextDeployer">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
<Set name="scanInterval">1</Set>
<Set name="configurationManager">
<New class="org.mortbay.jetty.deployer.FileConfigurationManager">
<Set name="file"><SystemProperty name="jetty.home" default="."/>/etc/deployment.properties</Set>
</New>
</Set>
</New>
</Arg>
</Call>
|
Property Replacements: the ConfigurationManager
Replaces <Property name="foo"/> with the actual value found in a deployoment.properties file.
sample context.xml
| Code Block |
|---|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath"><Property name="foo"/></Set>
</Configure>
|
It is equivalent to <Set name="contextPath">/bar</Set>
sample deployment.properties ($jetty.home/etc/deployment.properties)
ContextDeployer configuration
| Code Block |
|---|
|
<Set name="configurationManager">
<New class="org.mortbay.jetty.deployer.FileConfigurationManager">
<Set name="file"><SystemProperty name="jetty.home" default="."/>/etc/deployment.properties</Set>
</New>
</Set>
|