Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property Replacements: the ConfigurationManager

Replaces <Property name="foo"/> with the actual value found in a deployoment.properties file.

sample context.xml
Code Block
xml
xml
<?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>

The webapp configured (above) will be deployed on the contextPath: /bar*It is equivalent to <Set name="contextPath">/bar</Set>

sample deployment.properties ($jetty.home/etc/deployment.properties)

...

ContextDeployer configuration
Code Block
xml
xml
         
<Set name="configurationManager">
  <New class="org.mortbay.jetty.deployer.FileConfigurationManager">
    <Set name="file"><SystemProperty name="jetty.home" default="."/>/etc/deployment.properties</Set>
  </New>
</Set>
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery