Chinaunix首页 | 论坛 | 博客
  • 博客访问: 363156
  • 博文数量: 80
  • 博客积分: 2056
  • 博客等级: 大尉
  • 技术积分: 961
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-19 12:17
文章分类

全部博文(80)

文章存档

2011年(9)

2010年(13)

2009年(41)

2008年(17)

我的朋友

分类: LINUX

2009-05-08 10:42:44

  1.   
  2. <resin xmlns="" xmlns:resin="/core">  
  3.     
  4.   <class-loader>  
  5.     <tree-loader path="${resin.home}/lib"/>  
  6.     <tree-loader path="${resin.root}/lib"/>  
  7.   class-loader>  
  8.     
  9.   <management path="${resin.root}/admin">  
  10.   management>  
  11.     
  12.   <log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>  
  13.     
  14.   <logger name="com.caucho" level="info"/>  
  15.   <logger name="com.caucho.java" level="config"/>  
  16.   <logger name="com.caucho.loader" level="config"/>  
  17.     
  18.   <dependency-check-interval>2sdependency-check-interval>  
  19.     
  20.   <system-property mail.smtp.host="127.0.0.1"/>  
  21.   <system-property mail.smtp.port="25"/>  
  22.     
  23.   <javac compiler="internal" args="-source 1.5"/>  
  24.   
  25.     
  26.       <security-provider>  
  27.          com.sun.net.ssl.internal.ssl.Provider  
  28.       security-provider>  
  29.   
  30.     
  31.         
  32.       <system-property javax.xml.parsers.DocumentBuilderFactory  
  33.                       ="com.caucho.xml.parsers.XmlDocumentBuilderFactory"/>  
  34.       <system-property javax.xml.parsers.SAXParserFactory  
  35.                       ="com.caucho.xml.parsers.XmlSAXParserFactory"/>  
  36.     
  37.   <cluster id="app-tier">  
  38.       
  39.     <root-directory>.root-directory>  
  40.     <server-default>  
  41.         
  42.       <http address="*" port="8080"/>  
  43.         
  44.             
  45.           <http address="*" port="8443">  
  46.             <openssl>  
  47.               <certificate-file>keys/gryffindor.crtcertificate-file>  
  48.               <certificate-key-file>keys/gryffindor.keycertificate-key-file>  
  49.               <password>test123password>  
  50.             openssl>  
  51.           http>  
  52.          
  53.         
  54.       <jvm-arg>-Xmx256mjvm-arg>  
  55.       <jvm-arg>-Xss1mjvm-arg>  
  56.       <jvm-arg>-Xdebugjvm-arg>  
  57.       <jvm-arg>-Dcom.sun.management.jmxremotejvm-arg>  
  58.         
  59.           <jvm-arg>-agentlib:resinjvm-arg>  
  60.   
  61.       <watchdog-arg>-Dcom.sun.management.jmxremotewatchdog-arg>  
  62.         
  63.       <memory-free-min>1Mmemory-free-min>  
  64.         
  65.       <thread-max>256thread-max>  
  66.         
  67.       <socket-timeout>65ssocket-timeout>  
  68.         
  69.       <keepalive-max>128keepalive-max>  
  70.       <keepalive-timeout>15skeepalive-timeout>  
  71.         
  72.           <user-name>resinuser-name>  
  73.           <group-name>resingroup-name>  
  74.         
  75.     server-default>  
  76.       
  77.     <server id="" address="127.0.0.1" port="6800"/>  
  78.       
  79.     <resin:if test="${resin.isProfessional()}">  
  80.       <persistent-store type="cluster">  
  81.         <init path="session"/>  
  82.       persistent-store>  
  83.     resin:if>  
  84.       
  85.         <ssl-session-cookie>SSL_JSESSIONIDssl-session-cookie>  
  86.       
  87.       
  88.     <resin:if test="${isResinProfessional}">  
  89.       <cache path="cache" memory-size="64M">  
  90.           
  91.         <rewrite-vary-as-private/>  
  92.       cache>  
  93.     resin:if>  
  94.       
  95.     <resin:if test="${isResinProfessional}">  
  96.       <ping>  
  97.           
  98.     <resin:import path="${resin.home}/conf/app-default.xml"/>  
  99.       
  100.     <web-app-default>  
  101.         
  102.       <class-loader>  
  103.         <tree-loader path="${server.root}/ext-webapp"/>  
  104.       class-loader>  
  105.         
  106.       <cache-mapping url-pattern="/" expires="5s"/>  
  107.       <cache-mapping url-pattern="*.gif" expires="60s"/>  
  108.       <cache-mapping url-pattern="*.jpg" expires="60s"/>  
  109.       <cache-mapping url-pattern="*.png" expires="60s"/>  
  110.         
  111.       <allow-servlet-el/>  
  112.         
  113.       <session-config>  
  114.         <enable-url-rewriting>falseenable-url-rewriting>  
  115.       session-config>  
  116.         
  117.           <cookie-http-only/>  
  118.             
  119.         
  120.         <jsp>  
  121.           <validate-taglib-schema>truevalidate-taglib-schema>  
  122.           <fast-jstl>truefast-jstl>  
  123.           <fast-jsf>truefast-jsf>  
  124.         jsp>  
  125.     web-app-default>  
  126.       
  127.         The JDBC name is java:comp/env/jdbc/test  
  128.          <database>  
  129.            <jndi-name>jdbc/mysqljndi-name>  
  130.            <driver type="org.gjt.mm.mysql.Driver">  
  131.              <url>jdbc:mysql://localhost:3306/testurl>  
  132.              <user>user>  
  133.              <password>password>  
  134.             driver>  
  135.             <prepared-statement-cache-size>8prepared-statement-cache-size>  
  136.             <max-connections>20max-connections>  
  137.             <max-idle-time>30smax-idle-time>  
  138.           database>  
  139.             
  140.       
  141.     <host-default>  
  142.         
  143.       <access-log path="logs/access.log" format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"' rollover-period="1W"/>  
  144.         
  145.       <web-app-deploy path="webapps"/>  
  146.         
  147.       <ear-deploy path="deploy">  
  148.         <ear-default>  
  149.           <ejb-server>  
  150.             <config-directory>WEB-INFconfig-directory>  
  151.             <data-source>jdbc/testdata-source>  
  152.           ejb-server>  
  153.         ear-default>  
  154.       ear-deploy>  
  155.         
  156.       <resource-deploy path="deploy"/>  
  157.     host-default>  
  158.       
  159.     <host-deploy path="hosts">  
  160.       <host-default>  
  161.         <resin:import path="host.xml" optional="true"/>  
  162.       host-default>  
  163.     host-deploy>  
  164.       
  165.     <host id="" root-directory=".">  
  166.         
  167.       <web-app id="/" root-directory="webapps/ROOT"/>  
  168.       <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">  
  169.           
  170.         <prologue>  
  171.           <resin:set var="resin_admin_user" value=""/>  
  172.           <resin:set var="resin_admin_password" value=""/>  
  173.           <resin:set var="resin_admin_external" value="false"/>  
  174.         prologue>  
  175.       web-app>  
  176.     host>  
  177.   cluster>  
  178.     
  179.   <resin:if test="${resin.isProfessional()}">  
  180.     <cluster id="web-tier">  
  181.       <server-default>  
  182.           
  183.         <http address="*" port="9080"/>  
  184.       server-default>  
  185.       <server id="web-a" address="127.0.0.1" port="6700"/>  
  186.       <cache path="cache" memory-size="64M"/>  
  187.       <host id="">  
  188.         <web-app id="/">  
  189.            <rewrite-dispatch>  
  190.              <load-balance regexp="" cluster="app-tier"/>  
  191.            rewrite-dispatch>  
  192.         web-app>  
  193.       host>  
  194.     cluster>  
  195.   resin:if>  
  196. resin>  
阅读(2159) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~