📄 resin-3.0.7.xtp
字号:
<document> <header> <product>resin</product> <title>Resin 3.0.7 Release Notes</title> </header><body><summary objsummary="localtoc"/><s1 title="Overview"><p>Resin 3.0.7 includes a number of configuration changes for themore advanced user. It also includes a large number of bug fixesand some performance enhancements.</p></s1><s1 title="Configuration control"><p>The resin.conf and web.xml configuration files can now useresin:if and resin:choose control. These can be useful to createa resin.conf which works for both testing and deployment, depending onan environment parameter.</p><p>When possible, users should avoid using the control tags when possibleto keep their configuration files as simple as possible.</p><example><web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> <resin:choose> <resin:when test="\${mode='development'}"> <resin:log>Development Mode</resin:log> </resin:when> <resin:when test="\${mode='deploy'}"> <resin:log>Deployment Mode</resin:log> </resin:when> <resin:otherwise> <resin:log>Unknown Mode \${mode}</resin:log> </resin:otherwise></web-app></example><s2 title="resin:set"><p>resin:set adds an EL variable to the current context.</p><def><resin:set var="name" value="\${value}"/></def></s2><s2 title="resin:if"><p>resin:if executes part of the configuration file conditionally.</p><def><resin:if test="${expr}"> ...<resin:if></def></s2><s2 title="resin:choose"><p>resin:choose implements an if, elsif, else.</p><def><resin:choose><resin:when test="${expr1}"> ...</resin:when><resin:when test="${expr2}"> ...</resin:when><resin:otherwise></resin:otherwise></def></s2><s2 title="resin:env"><p>resin:env creates a new environment for a section of theconfiguration file. Some users may want to use this to create resourcesor databases with custom <class-loader> tags.</p><example><web-app> .. <resin:env> <class-loader> <library-loader path="/opt/customlib"/> </class-loader> <resource ...> </resin:env> ...</example></s2><s2 title="resin:log"><p>Logs a message to the given log file.</p></s2><s2 title="resin:import"><p>resin:import now replaces resin:include.The behavior is a bit different. The target file now is validated byschema where the schema depends on the location of the resin:import.So a resin:import in <server> will have a target with a top-level nowof <server>.</p><p>resin:import also allows a <fileset> attribute.</p></s2></s1><s1 title="Batch Compilation"><p>The compiling-loader will now batch as many changed *.java files as it finds and will submit all at once for compilation.</p><p>The "batch" attribute of compiling-loader controls this behavior.</p></s1><s1 title="Logging"><p>The <log> tag now supports multiple <logger> children.</p><example><log path='log/connections.log' timestamp='[%H:%M:%S.%s] '/> <logger name='com.caucho.server.port.TcpConnection' level='all'/> <logger name='com.caucho.server.http.HttpRequest' level='all'/></log></example></s1><s1 title="Apache"><p>Manual configuration has been restored to mod_caucho.</p><p>The configuration looks like:</p><example>LoadModule caucho_module /usr/local/apache2/modules/mod_caucho.soCauchoHost localhost 6802<Location /test/*> SetHandler caucho-request</Location></example></s1><s1 title="Clustering"><p>The cluster-definition and cluster-ref have now been properly added.</p><example title="backend.conf"><resin xmlns="http://caucho.com/ns/resin"><server> <cluster-definition id='foo.com'> <srun id="foo" index='1' host='localhost' port='6810'/> </cluster-definition> <cluster-definition id='bar.com'> <srun id="bar" index='2' host='localhost' port='6811'/> </cluster-definition> <host-default> <cluster cluster-ref="${host.name}"/> <web-app id="/"/> </host-default> <host id="foo.com" root-directory="foo"/> <host id="bar.com" root-directory="bar"/></server></resin></example><example title="frontend.conf"><resin xmlns="http://caucho.com/ns/resin"> <server> <cluster-definition id='foo.com'> <srun id="a" index='1' host='localhost' port='6810'/> </cluster-definition> <cluster-definition id='bar.com'> <srun id="b" index='2' host='localhost' port='6811'/> </cluster-definition> <host-default> <web-app id='/'> <servlet servlet-name='remote' servlet-class='com.caucho.servlets.HmuxLoadBalanceServlet'> <init-param cluster="${host.name}"/> </servlet> <servlet-mapping url-pattern='/*' servlet-name='remote'/> </web-app> </host-default> <host id='foo.com'/> <host id='bar.com'/> </server></resin></example></s1><s1 title="Database"><p>The database configuration now allows for a backup driver.Multiple <driver> blocks round-robin the load.</p><example><database> <jndi-name>jdbc/mysql</jndi-name> <driver type="org.gjt.mm.mysql.Driver"> <url>jdbc:mysql://gryffindor:3306/test</url> </driver> <driver type="org.gjt.mm.mysql.Driver"> <url>jdbc:mysql://hufflepuff:3306/test</url> </driver> <backup-driver type="org.gjt.mm.mysql.Driver"> <url>jdbc:mysql://slytherin:3306/test</url> </backup-driver></database></example></s1><s1 title="JMX"><p>Resin's JMX has been upgraded to support JDK 1.5.The MBeanServer at java:comp/jmx/MBeanServer makes theJDK java.lang.monitoring available.</p></s1><s1 title="Apache 2.0 enhancements"><p>mod_caucho can now have individually configured ResinConfigServer inseparate <Location> blocks.</p></s1><s1 title="Burlap/Hessian"><p>Added com.caucho.hessian.io.BeanSerializerFactory to allow bean-styleserialization instead of requiring field serialization.</p></s1><s1 title="Classloader"><p>library-loader now accepts fileset.</p></s1><s1 title="Distributed XA Logging"><p>The transaction manager can now be configured fordistributed XA logging and recovery. The log does not affectsingle-resource transactions.</p><example title="resin.conf"><resin xmlns="http://caucho.com/ns/resin"> <transaction-manager> <transaction-log> <path>file:/var/xalog/log1</path> </transaction-log> </transaction-manager> ...</resin></example></s1><s1 title="JSP batch precompilation"><p>A new resource, com.caucho.jsp.JspPrecompileResource, will precompileJSP files on web-app startup. This compilation is batched to a singlejavac invocation, which generally improves JSP compilation andstartup performance.</p></s1></body></document>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -