Versions Compared

Key

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

...

Now we need to set up 2 context files, one to describe the webapp we wish to deploy on Server A and the other for the webapp to deploy on Server B. We then put these files into $JETTY_HOME/contextsA or $JETTY_HOME/contextsB respectively.

Section
Column
{
Code Block
:xml|title=
xml
bgColorFFFFFF
xml
titleBGColor#54FF9F
titlecontextA.xml
|titleBGColor=#54FF9F|bgColor=FFFFFF
<Configure i

    <Configure i class="org.mortbay.jetty.webapp.WebAppContext">

<Set

      <Set name="war"><SystemProperty name="jetty.home"/>/webapps/A</Set>

<Set

      <Set name="contextPath">/webappA</Set>


       ...


    </Configure>
Code Block
Column
Code Block
xml
bgColorFFFFFF
xml
titleBGColor#AB82FF
titlecontextB.xml
    <Configure i class="org.mortbay.jetty.webapp.WebAppContext">
      <Set name="war"><SystemProperty name="jetty.home"/>/webapps/B</Set>
      <Set name="contextPath">/webappB</Set>
       ...
    </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