免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1124 | 回复: 0
打印 上一主题 下一主题

resin 3.1配置说明 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-08 10:42 |只看该作者 |倒序浏览

   
  • resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core">   
         
  •   class-loader>   
        tree-loader path="${resin.home}/lib"/>   
  •     tree-loader path="${resin.root}/lib"/>   
      class-loader>   
  •      
      management path="${resin.root}/admin">   
  •   management>   
         
  •   log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>   
         
  •   logger name="com.caucho" level="info"/>   
      logger name="com.caucho.java" level="config"/>   
  •   logger name="com.caucho.loader" level="config"/>   
         
  •   dependency-check-interval>2sdependency-check-interval>   
         
  •   system-property mail.smtp.host="127.0.0.1"/>   
      system-property mail.smtp.port="25"/>   
  •      
      javac compiler="internal" args="-source 1.5"/>   
  •    
         
  •       security-provider>   
             com.sun.net.ssl.internal.ssl.Provider   
  •       security-provider>   
       
  •      
             
  •       system-property javax.xml.parsers.DocumentBuilderFactory   
                          ="com.caucho.xml.parsers.XmlDocumentBuilderFactory"/>   
  •       system-property javax.xml.parsers.SAXParserFactory   
                          ="com.caucho.xml.parsers.XmlSAXParserFactory"/>   
  •      
      cluster id="app-tier">   
  •        
        root-directory>.root-directory>   
  •     server-default>   
             
  •       http address="*" port="8080"/>   
             
  •             
              http address="*" port="8443">   
  •             openssl>   
                  certificate-file>keys/gryffindor.crtcertificate-file>   
  •               certificate-key-file>keys/gryffindor.keycertificate-key-file>   
                  password>test123password>   
  •             openssl>   
              http>   
  •          
             
  •       jvm-arg>-Xmx256mjvm-arg>   
          jvm-arg>-Xss1mjvm-arg>   
  •       jvm-arg>-Xdebugjvm-arg>   
          jvm-arg>-Dcom.sun.management.jmxremotejvm-arg>   
  •          
              jvm-arg>-agentlib:resinjvm-arg>   
  •    
          watchdog-arg>-Dcom.sun.management.jmxremotewatchdog-arg>   
  •          
          memory-free-min>1Mmemory-free-min>   
  •          
          thread-max>256thread-max>   
  •          
          socket-timeout>65ssocket-timeout>   
  •          
          keepalive-max>128keepalive-max>   
  •       keepalive-timeout>15skeepalive-timeout>   
             
  •           user-name>resinuser-name>   
              group-name>resingroup-name>   
  •          
        server-default>   
  •        
        server id="" address="127.0.0.1" port="6800"/>   
  •        
        resin:if test="${resin.isProfessional()}">   
  •       persistent-store type="cluster">   
            init path="session"/>   
  •       persistent-store>   
        resin:if>   
  •        
            ssl-session-cookie>SSL_JSESSIONIDssl-session-cookie>   
  •       
           
  •     resin:if test="${isResinProfessional}">   
          cache path="cache" memory-size="64M">   
  •            
            rewrite-vary-as-private/>   
  •       cache>   
        resin:if>   
  •     来检查。  -->   
        resin:if test="${isResinProfessional}">   
  •       ping>   
            http://localhost:8080/test-ping.jsp -->   
  •       ping>   
        resin:if>   
  •        
        resin:import path="${resin.home}/conf/app-default.xml"/>   
  •        
        web-app-default>   
  •          
          class-loader>   
  •         tree-loader path="${server.root}/ext-webapp"/>   
          class-loader>   
  •          
          cache-mapping url-pattern="/" expires="5s"/>   
  •       cache-mapping url-pattern="*.gif" expires="60s"/>   
          cache-mapping url-pattern="*.jpg" expires="60s"/>   
  •       cache-mapping url-pattern="*.png" expires="60s"/>   
             
  •       allow-servlet-el/>   
             
  •       session-config>   
            enable-url-rewriting>falseenable-url-rewriting>   
  •       session-config>   
             
  •           cookie-http-only/>   
                
  •          
            jsp>   
  •           validate-taglib-schema>truevalidate-taglib-schema>   
              fast-jstl>truefast-jstl>   
  •           fast-jsf>truefast-jsf>   
            jsp>   
  •     web-app-default>   
           
  •         The JDBC name is java:comp/env/jdbc/test   
             database>   
  •            jndi-name>jdbc/mysqljndi-name>   
               driver type="org.gjt.mm.mysql.Driver">   
  •              url>jdbc:mysql://localhost:3306/testurl>   
                 user>user>   
  •              password>password>   
                driver>   
  •             prepared-statement-cache-size>8prepared-statement-cache-size>   
                max-connections>20max-connections>   
  •             max-idle-time>30smax-idle-time>   
              database>   
  •             
           
  •     host-default>   
             
  •       access-log path="logs/access.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W"/>   
             
  •       web-app-deploy path="webapps"/>   
             
  •       ear-deploy path="deploy">   
            ear-default>   
  •           ejb-server>   
                config-directory>WEB-INFconfig-directory>   
  •             data-source>jdbc/testdata-source>   
              ejb-server>   
  •         ear-default>   
          ear-deploy>   
  •          
          resource-deploy path="deploy"/>   
  •     host-default>   
           
  •     host-deploy path="hosts">   
          host-default>   
  •         resin:import path="host.xml" optional="true"/>   
          host-default>   
  •     host-deploy>   
           
  •     host id="" root-directory=".">   
             
  •       web-app id="/" root-directory="webapps/ROOT"/>   
          web-app id="/resin-admin" root-directory="${resin.home}/php/admin">   
  •            
            prologue>   
  •           resin:set var="resin_admin_user" value=""/>   
              resin:set var="resin_admin_password" value=""/>   
  •           resin:set var="resin_admin_external" value="false"/>   
            prologue>   
  •       web-app>   
        host>   
  •   cluster>   
         
  •   resin:if test="${resin.isProfessional()}">   
        cluster id="web-tier">   
  •       server-default>   
               
  •         http address="*" port="9080"/>   
          server-default>   
  •       server id="web-a" address="127.0.0.1" port="6700"/>   
          cache path="cache" memory-size="64M"/>   
  •       host id="">   
            web-app id="/">   
  •            rewrite-dispatch>   
                 load-balance regexp="" cluster="app-tier"/>   
  •            rewrite-dispatch>   
            web-app>   
  •       host>   
        cluster>   
  •   resin:if>   
    resin>   

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/66903/showart_1922060.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP