User: janb    
  Date: 02/02/19 21:56:40

  Modified:    jetty/src/resources/jetty-plugin/META-INF jboss-service.xml
  Log:
  Added Jetty-specific XML to JettyService mbean configuration. Tidied up comments.
  
  Revision  Changes    Path
  1.19      +109 -9    
contrib/jetty/src/resources/jetty-plugin/META-INF/jboss-service.xml
  
  Index: jboss-service.xml
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jetty/src/resources/jetty-plugin/META-INF/jboss-service.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- jboss-service.xml 19 Feb 2002 23:22:32 -0000      1.18
  +++ jboss-service.xml 20 Feb 2002 05:56:40 -0000      1.19
  @@ -2,7 +2,6 @@
   
   <server>
   
  -
     <!-- ==================================================================== -->
     <!-- Web Container                                                        -->
     <!-- ==================================================================== -->
  @@ -13,26 +12,127 @@
      -->
   
     <mbean code="org.jboss.jetty.JettyService" name="jboss.web:service=Jetty">
  -    <attribute name="JettyHome">dummy</attribute>
  -    <attribute name="Configuration">jetty.xml</attribute>
  -    <attribute name="WebDefault">webdefault.xml</attribute>
  +
  +    <!-- ================================================================= -->
  +    <!-- Uncomment the following line ONLY if you want to provide a custom -->
  +    <!-- webdefault.xml file in place of the standard one. Place your      -->
  +    <!-- file in the src/etc directory to have it automatically included   -->  
  +    <!-- in the build.                                                     -->
  +    <!-- ================================================================= -->
  +    <!--
  +    <attribute name="WebDefault">webdefault.xml</attribute>        
  +    -->
  +
  +
  +    <!-- ================================================================== -->
  +    <!-- If true, .war files are unpacked to a temporary directory. This    -->
  +    <!-- is useful with JSPs.                                               -->
  +    <!-- ================================================================== -->
       <attribute name="UnpackWars">true</attribute>
  +
  +
  +    <!-- ================================================================== -->
  +    <!-- If true, mbeans are created for Jetty and all contexts, logsinks,  -->
  +    <!-- listeners etc. View them via the JBoss management interface on     -->
  +    <!-- http://localhost:8082                                              -->
  +    <!-- ================================================================== -->
       <attribute name="PublishMBeans">true</attribute>
   
  -    <!-- 
org.jboss.jetty.session.CoarseDistributedStore/org.jboss.jetty.session.ClusteredStore 
-->
  +
  +    <!-- ================================================================= -->
  +    <!-- Configuring Jetty. The XML fragment contained in the              -->
  +    <!-- name="ConfigurationElement" attribute is a Jetty-style            -->
  +    <!-- configuration specification.  It is used to configure Jetty with  -->
  +    <!-- a listener on port 8080, and a HTTP request log location.         -->
  +    <!-- The placement of other Jetty XML configuration statements here is -->
  +    <!-- EXTREMELY DISCOURAGED: for example, any webapps deployed here     -->
  +    <!-- will NOT be visible to JBoss. If you REALLY NEED to specify       -->
  +    <!-- something extra, place it in WEB-INF/web-jetty.xml files          -->
  +    <!-- ================================================================= -->
  +    <attribute name="ConfigurationElement">
  +      <Configure class="org.mortbay.jetty.Server">
  +
  +
  +          <!-- ======================================================= -->
  +       <!-- Add the listener                                        -->
  +          <!-- ======================================================= -->
  +          <Call name="addListener">
  +            <Arg>
  +             <New class="org.mortbay.http.SocketListener">
  +              <Set name="Port"><SystemProperty name="jetty.port" 
default="8080"/></Set>
  +              <Set name="MinThreads">5</Set>
  +              <Set name="MaxThreads">255</Set>
  +              <Set name="MaxIdleTimeMs">30000</Set>
  +              <Set name="MaxReadTimeMs">10000</Set>
  +              <Set name="MaxStopTimeMs">5000</Set>
  +              <Set name="LowResourcePersistTimeMs">5000</Set>
  +              </New>
  +            </Arg>
  +          </Call>
  +
  +          <!-- ======================================================= -->
  +       <!-- Add the HTTP request log                                -->
  +          <!-- ======================================================= -->
  +          <Set name="RequestLog">
  +            <New class="org.mortbay.http.NCSARequestLog">
  +              <Arg><SystemProperty name="jetty.log" 
default="../log"/>/yyyy_mm_dd.request.log
  +           </Arg>
  +              <Set name="retainDays">90</Set>
  +              <Set name="append">true</Set>
  +              <Set name="extended">true</Set>
  +              <Set name="LogTimeZone">GMT</Set>
  +            </New>
  +          </Set>
  +
  +          <!-- ======================================================= -->
  +          <!-- Uncomment and set at least the Keystore, Password and   -->
  +       <!-- KeyPassword fields to configure an SSL listener         -->
  +          <!-- ======================================================= -->
  +       <!--
  +           <Call name="addListener">
  +             <Arg>
  +               <New class="org.mortbay.http.SunJsseListener">
  +                 <Set name="Port">8443</Set>
  +                 <Set name="MinThreads">5</Set>
  +                 <Set name="MaxThreads">255</Set>
  +                 <Set name="MaxIdleTimeMs">30000</Set>
  +                 <Set name="MaxReadTimeMs">10000</Set>
  +                 <Set name="MaxStopTimeMs">5000</Set>
  +                 <Set name="LowResourcePersistTimeMs">2000</Set>
  +                 <Set name="Keystore"><SystemProperty name="jetty.home" 
default="."/>/etc/demokeystore</Set>
  +                 <Set name="Password">dummy</Set>
  +                 <Set name="KeyPassword">dummy</Set>
  +               </New>
  +             </Arg>
  +           </Call>
  +          -->
  +      </Configure>
  +     </attribute>
  +
  +
  +    <!-- ================================================================= -->
  +    <!-- Options for distributed session management are:                   -->
  +    <!--     org.jboss.jetty.session.CoarseDistributedStore                -->
  +    <!--     org.jboss.jetty.session.ClusteredStore                        -->
  +    <!-- ================================================================= -->
       <attribute 
name="HttpSessionStorageStrategy">org.jboss.jetty.session.CoarseDistributedStore</attribute>
   
  -    <!-- never/idle/request/<num-seconds>-->
  +    <!-- ================================================================= -->
  +    <!-- Options for synchronizing distributed sessions:                   -->
  +    <!--     never/idle/request/<num-seconds>                              -->
  +    <!-- ================================================================= -->
       <attribute name="HttpSessionSnapshotFrequency">never</attribute>
   
  -    <!-- neither/activate/passivate/both -->
  +    <!-- ================================================================= -->
  +    <!-- Options for                                                       -->
  +    <!--     neither/activate/passivate/both                               -->
  +    <!-- ================================================================= -->
       <attribute name="HttpSessionSnapshotNotificationPolicy">neither</attribute>
   
  + 
       <!-- comment this out if you don't want JAAS support -->
       <attribute name="SubjectAttributeName">j_subject</attribute>
   
     </mbean>
  -
  -  <!--classpath codebase="lib/ext" archives="javax.servlet.jar, 
org.apache.jasper.jar, jboss-j2ee.jar"/-->
   
   </server>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to