| ||||||||||||||||
Resin 3.1 Documentation Examples Changes Release Notes Change Logs Resin 3.1.2 Resin 3.1.1 Resin 3.1.0 Archive Resin 3.0.20 Resin 3.0.19 Resin 3.0.18 Resin 3.0.17 Resin 3.0.16 Resin 3.0.15 Resin 3.0.14 Resin 3.0.13 Resin 3.0.12 Resin 3.0.11 Resin 3.0.10 Resin 3.0.9 Resin 3.0.8 Resin 3.0.7 Resin 3.0.6 Resin 3.0.5 Resin 3.0.4 Resin 3.0.3 Resin 3.0.2 Resin 3.0.1 Resin 3.0.0 |
OverviewResin 3.0.1 is the second beta release of Resin 3.0.x. Because of the large number of changes, developers should stress test their application with Resin 3.0.1 thoroughly before deploying it. We are calling the Resin 3.0.x series "beta". The "production" versions will be the Resin 3.1.x series. The two reasons for calling the code "beta" is the large number of changes, and because we are expecting to add a great deal of features to following 3.0.x releases. For many users, the stability of 3.0.x will be sufficient for deployment, but we wanted to give an extra warning to make sure that people stress tested their applications before deploying on 3.0.x. JSP 2.0 and Servlet 2.4 draftsResin 3.0.1 implements the complete JSP 2.0 third draft. Any discrepancies should be reported as bugs. In particular, Resin 3.0.1 adds support for *.tag and *.tagx files. Resin 3.0.1 does not yet include the full support for the third draft of Servlet 2.4. In particular, the ERROR dispatch configuration for filters and the Request listeners have not yet been implemented. Persistent Session changesResin 3.0.1 includes a large number of persistent session changes. Large parts of that section of Resin has been reimplemented. Configuration-wise, the changes should be minimal. The <persistent-store> is configured outside the <session-config>, or for TCP (cluster) sessions, the <cluster-store> is configured inside the <cluster> definition itself. Old-style resin.conf and web.xml are still accepted. Passivation changes (change in session-max)Resin 3.0.1 now allows for many more sessions on disk than in memory. session-max continues to specify the maximum number of sessions allows in memory, but the number of session stored on disk may be much larger. This change will allow sites to set very large session-timeout values, e.g. 24 hours or even 1 month, and allow the sessions to be saved in the persistent store without overloading the memory. session owning servers (always-load-session)jdbc-store now understands the owning server for a session, as tcp-store always has. Now, when a request goes to the owning server for the session, the jdbc-store does not need to query the database for any updates (backup servers will always need to query the database. By saving that query, jdbc-store should now be about as efficient for a load-balanced configuration as tcp-store, as long as the load balancer understands sticky sessions. (If the load balancer always sends requests to random servers, there is a smaller probability that the request will reach the owning server.) CRC checking (always-save-session)always-save-session now checks the CRC-64 hash of the serialized session to see if any changes have occurred. If the hash is identical, Resin will know not to save the serialized value, saving either a database trip for jdbc-store or a TCP update for cluster-store. The session will still incur the cost of serialization. Resources<resource> now recognizes The Resource tutorials show how resources can take advantage of these callbacks. CronResource (run-at)The new CronResource now replaces the old run-at servlets. The CronResource accepts an application WorkTask which it executes at specific times, configured following the Unix cron syntax. <resource type="com.caucho.resources.CronResource"> <init> <cron>10 3,18</cron> <work bean-class="example.WorkTask"> <value>Example</value> <jndi>java:comp/env/example</jndi> </work> </init> </resource> XDocletResin 3.0 now has a limited direct support for EJB/XDoclet generation. The internal XDoclet generator is run as part of <make-loader>, the make classloader. Most of the CMP examples have been expanded to use XDoclet. <web-app xmlns="http://caucho.com/ns/resin"> <class-loader> <make-loader path="WEB-INF/classes"> <ejb-doclet srcdir="WEB-INF/classes"/> </make-loader> <compiling-loader path="WEB-INF/classes"/> </class-loader> </web-app> Configuration Changescluster (srun)The clustering configuration (srun) has changed slightly. The <srun> elements must now be in a <cluster> block. <resin xmlns="http://caucho.com/ns/resin"> <server> <cluster> <port id='' host='127.0.0.1' port='6802'/> </cluster> ... </server> </resin>
persistent storePersistent store is now configured separately from the <session-config>. This will allow the persistent store to manage distributed objects for things other than sessions and is also needed for the lazy-init to work with cluster store. <resin xmlns="http://caucho.com/ns/resin"> <server> <cluster> <port server-id="a" port='6810' index='1'/> <port server-id="b" port='6811' index='2'/> <cluster-store name="caucho/store" path="session"/> </cluster> <host id=''> <web-app id='/'> <session-config persistent-store="caucho/store"/> </web-app> </host> </server> </resin> <web-app xmlns="http://caucho.com/ns/resin"> <persistent-store name="caucho/store" type="jdbc"> <init> <data-source>jdbc/session</data-source> </init> </persistent-store> <session-config persistent-store="caucho/store"/> </web-app>
dependencyResin 3.0.1 adds experimental support for custom dependency checking. With <dependency>, a web.xml can specify that the Application should be restarted when a specified file changes, just like the web.xml. For example, a user could specify the struts-config.xml. <web-app xmlns="http://caucho.com/ns/resin"> <dependency path="WEB-INF/struts-config.xml"/> ... </web-app>
ear-deployResin 3.0.1 adds preliminary support for EAR files with the <ear-deploy> configuration element. The deployment directory, specified by the , is the location for the .ear file. That directly may safely coexist with the directory, since the expanded directory names are unique.<ear-deploy> may occur in the <host> and the <web-app> context.
resource-deployResin 3.0.1 adds preliminary support for RAR files with the <resource-deploy> configuration element. The deployment directory, specified by the , is the location for the .rar file. That directly may safely coexist with the directory, since the expanded directory names are unique.<resource-deploy> may occur in any environment context, e.g. <server>, <host>, or <web-app>. The resources found by the <resource-deploy> are configured and created with the <connector> element.
connectorThe new connector element is used to configure .rar resources. Old style connectors will have a single <connection-factory> interface. New-style connectors (Connector 1.5) can include a separate <resource-adapter> configuration. <web-app xmlns="http://caucho.com/ns/resin"> <resource-deploy path="WEB-INF/deploy"/> <connector type="example.TestResourceFactory"> <connection-factory name="jca/t1"> <init><value>a</value></init> </connection-factory> </connector> </web-app>
Limitations
|