Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Now, if we have web applications A and B, we would plug the instance we defined above into the configurations for both:

Code Block
xml
xml
titleWeb App Axml
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
  <Set name="contextPath">/A</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/A</Set>
  <Get name="securityHandler">
    <Set name="userRealm">
      <New class="org.mortbay.jetty.security.HashUserRealm">
            <Set name="name">My Realm</Set>
            <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
            <Set name="sSORealm"><Ref id="sso"/></Set>
      </New>
    </Set>
  </Get>
</Configure>
Code Block
xml
xml
titleWeb App Bxml
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
  <Set name="contextPath">/B</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/B</Set>
  <Get name="securityHandler">
    <Set name="userRealm">
      <New class="org.mortbay.jetty.security.HashUserRealm">
            <Set name="name">My Realm</Set>
            <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
            <Set name="sSORealm"><Ref id="sso"/></Set>
      </New>
    </Set>
  </Get>
</Configure>

...

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