resin3.1配置说明

   
< 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" />   
     
      
  < management   path = "${resin.root}/admin" >   
     
      
  < 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 > 2s    
      
  < 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  
         
  
      
        
      < 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 > .    
    < server-default >   
          
      < http   address = "*"   port = "8080" />   
          
            
          < http   address = "*"   port = "8443" >   
            < openssl >   
              < certificate-file > keys/gryffindor.crt    
              < certificate-key-file > keys/gryffindor.key    
              < password > test123    
               
             
         
          
      < jvm-arg > -Xmx256m    
      < jvm-arg > -Xss1m    
      < jvm-arg > -Xdebug    
      < jvm-arg > -Dcom.sun.management.jmxremote    
          
          < jvm-arg > -agentlib:resin    
  
      < watchdog-arg > -Dcom.sun.management.jmxremote    
          
      < memory-free-min > 1M    
          
      < thread-max > 256    
          
      < socket-timeout > 65s    
          
      < keepalive-max > 128    
      < keepalive-timeout > 15s    
          
          < user-name > resin    
          < group-name > resin    
        
       
        
    < server   id = ""   address = "127.0.0.1"   port = "6800" />   
        
    < resin:if   test = "${resin.isProfessional()}" >   
      < persistent-store   type = "cluster" >   
        < init   path = "session" />   
         
       
        
        < ssl-session-cookie > SSL_JSESSIONID    
      
        
    < resin:if   test = "${isResinProfessional}" >   
      < cache   path = "cache"   memory-size = "64M" >   
            
        < rewrite-vary-as-private />   
         
       
        
    < resin:if   test = "${isResinProfessional}" >   
      < ping >   
            
         
       
        
    < resin:import   path = "${resin.home}/conf/app-default.xml" />   
        
    < web-app-default >   
          
      < class-loader >   
        < tree-loader   path = "${server.root}/ext-webapp" />   
         
          
      < 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 > false    
         
          
          < cookie-http-only />   
            
          
        < jsp >   
          < validate-taglib-schema > true    
          < fast-jstl > true    
          < fast-jsf > true    
           
       
        
        The JDBC name is java:comp/env/jdbc/test  
         < database >   
           < jndi-name > jdbc/mysql    
           < driver   type = "org.gjt.mm.mysql.Driver" >   
             < url > jdbc:mysql://localhost:3306/test    
             < user >    
             < password >    
               
            < prepared-statement-cache-size > 8    
            < max-connections > 20    
            < max-idle-time > 30s    
             
            
        
    < 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-INF    
            < data-source > jdbc/test    
             
           
         
          
      < resource-deploy   path = "deploy" />   
       
        
    < host-deploy   path = "hosts" >   
      < host-default >   
        < resin:import   path = "host.xml"   optional = "true" />   
         
       
        
    < 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" />   
           
         
       
     
      
  < resin:if   test = "${resin.isProfessional()}" >   
    < cluster   id = "web-tier" >   
      < server-default >   
            
        < http   address = "*"   port = "9080" />   
         
      < 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" />   
              
           
         
       
     
 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/afeilxc/archive/2008/11/28/3400080.aspx

你可能感兴趣的:(资料)