📄 overview.xtp
字号:
<document><header><product>resin</product><title>Features - Resin and Resin Professional</title><description><p>Resin is a high-performance, scalable Java/PHP application server. Werelease two versions of Resin: an open source version under the GPL, anda professional version with enhanced performance, clustering,and reliability features.</p></description></header><body><localtoc/><s1 name="resinpro" title="Resin Professional"><p>Resin is provided in two versions, Resin Professional and Resin Open Source.Resin Professional adds features and enhancements commonly needed in a professional production environment. Resin Open Source is suitablefor hobbyists, developers, and low traffic websites that do notneed the performance and reliability enhancements of Resin Professional.</p><s2 name="reliability" title="Reliability features"> <p>Resin Professional provides a number of reliability features,including automatic server restart, detection and restart of locked orstalled servers, and monitoring of JVM memory usage for applicationswith memory leaks.</p><ul><li>Resin configuration: <a href="cluster-tags.xtp#ping"><ping></a></li><li>Resin configuration: <a href="server-tags.xtp#min-free-memory">min-free-memory</a></li></ul></s2><s2 name="cluster" title="Clustering"><p>Clustering provides the ability for multiple servers to appear as one serverto clients. Clustering provides enhanced reliability and allows sites toscale up as server demand increases,</p><p>Clustering is supported with the standalone web server, Apache, and IIS.</p><ul><li>Resin documentation: <a href="resin-clustering.xtp">Reliability and Load Balancing</a></li></ul></s2><s2 name="session" title="Persistent and Distributed sessions"><p>Persistent sessions guarantee that a server can restore the contentsof the HttpSession object when it is restarted.Distributed sessions provide the ability for multipleservers in a cluster to share the values stored in the HttpSession.</p><ul><li>Resin documentation: <a href="tcp-sessions.xtp">Persistent and Distributed Sessions</a></li></ul></s2><s2 name="native" title="Performance enhancing native code"><p>Resin Professional includes a native code libary on both Windows and Unixplatforms. Native code is used to provide significant performance benefitsin areas like socket connections, keepalive connections, and file systemaccess.</p></s2><s2 name="openssl" title="OpenSSL"><p>Resin Professional uses native code to link to the OpenSSL libraries,a much better and more efficient SSL solution than the Java facilitiesprovided by JSSE.</p><ul><li>Resin documentation: <a href="ssl.xtp">OpenSSL</a></li></ul></s2><s2 name="caching" title="HTTP proxy caching"><p>Resin Professional provides a memory and disk based caching system forincreased performance benefits.Server caching can speed dynamic pages tonear-static speeds. Small but frequently accessed resourcessuch as images and css files are cached in memory and served directlyto the client, avoiding even a read from the disk.</p><p>Many pages require expensive operations like databasequeries but change infrequently.Resin can cache the results and serve them like static pages.Resin's caching will work for any servlet, including JSPand XTP pages.</p><ul><li>Resin documentation: <a href="proxy-cache.xtp">Caching</a></li><li>Resin configuration: <a href="cluster.xtp#cache"><cache></a></li></ul></s2><s2 name="gzip" title="Gzip filter"><p>Bandwidth costs are significant for many websites. The GzipFilterenables automatic compression of responses for browsers that supportit. Use of the GzipFilter reduces bandwidth usageand may provide significant cost savings.</p><ul><li>Resin documentation: <a href="filter-library.xtp#GzipFilter">GzipFilter</a></li></ul></s2> </s1> <!-- resinpro --><s1 name="webserver" title="Web Server"><s2 title="Standalone"><ul><li><a href="resin-web-server.xtp">Resin documentation: Standalone web server Unix and Windows</a></li></ul><s3 name="http" title="Hypertext Transfer Protocol (HTTP)"></s3><s3 name="ssl" title="Secure Socket Layer (SSL) 3.0"><ul><li><a href="ssl.xtp">Resin documentation</a></li></ul></s3></s2> <!-- webserver --><s2 title="Apache 2.0 and 2.2 integration"><ul><li><a href="install-apache.xtp">Resin documentation: Resin with Apache</a></li></ul></s2><s2 title="IIS 5 and IIS 6 integration"><ul><li><a href="install-iis.xtp">Resin documentation: Resin with IIS</a></li></ul></s2><s2 name="cgi" title="CGI"><ul><li><a href="servlet-library.xtp#CGIServlet">Resin documentation</a></li></ul></s2></s1><s1 title="Resin-IoC and Dependency Injection"><ul><li>See <a href="resin-ioc.xtp">Resin-Ioc</a> documentation.</li></ul><p>Resin uses its own IoC/Dependency Injection engine for all of its JavaEEconfiguration. With the new WebBeans (JSR-299) specification draft, Resinprovides the same capabilities to application code. Components andsingleton beans can be configured in the resin-web.xml for full XMLconfigurability, or scanned for the class annotations for lightweightinjection to match the style of the application.</p><p>Because Resin-IoC is fully integrated with Resin's EJB 3.0 support, allapplication components and beans can use EJB aspects suchas @TransactionAttribute, @Stateless, @InterceptorClass, and @AroundInvoke.</p><p>The WebBeans IoC capabilities provide finely-controlled interceptionwith @InterceptorType binding, and type-safe dependency-injectionwith @BindingType annotations. Testing with mock components are automaticallysupported with custom @ComponentType annotations.</p><p>Event handling is fully integrated with the WebBeans API using a flexible@Observes parameter attribute, enabling any bean or component to listen toany matching typed event thrown through the WebBeans Container interface.</p><p>Resin-managed classes are automatically enlisted in the IoC engine. SoServlets, Filters, application listener classes, remote objects, andEJBs can all use Resin-IoC capabilities without anyadditional configuration.</p><p>Resin-IoC provides a straightforward driver for integrating Resin-IoCcapabilities with popular frameworks.<a href="http://wiki.caucho.com/Struts2">Struts2</a>,<a href="http://wiki.caucho.com/Spring">Spring</a>, <a href="http://wiki.caucho.com/Mule">Mule</a>,and <a href="http://wiki.caucho.com/Wicket">Wicket</a> have already beenintegrated.</p></s1><s1 name="php" title="Quercus/PHP"><ul><li>See <a href="quercus.xtp">Quercus/PHP</a> documentation</li></ul><p>Resin includes Quercus, our PHP 5 implementation, written entirelyin Java. Quercus is a reliable PHP, compiling to Java code and takingadvantage of the JDK's JIT compiler for maximum performance. BecauseQuercus is in Java, it's security is far superior to a C implementation. TheJVM automatically protects Quercus from stack overruns, pointer overflows,and third party C-modules.</p><p>And the performance is great. The compiled Quercus code is 4 to 6 timesfaster than raw, mod_php code. Even when compared with PHP accelerators,Quercus code is equal or slightly faster, depending on the application.</p><p>Quercus integrates tightly with Java, naturally since it is written inJava. Resin-IoC applications can easily provide beans and components toa Quercus/PHP presentation layer through a simple <code>java_bean</code>call. For more involved integration, Quercus provides a complete APIfor generating PHP facades over Java libraries. All the PHP librariesare written to this public API.</p><p>With Quercus, Java sites have access to the PHP killer applications.For blogs, Quercus supports the extremely popular Wordpress.For wikis, Quercus supports MediaWiki, the engine behind Wikipedia.</p></s1><s1 name="db" title="Database Pooling"><p>Resin provides a robust connection pool for any JDBC 1, JDBC 2, or JDBC 3database driver. Resin's database pools integrate with full 2-phase XAtransaction capabilities. In addition, the database connections can useround robin load balancing and backup failover for increased performanceand reliability.</p><ul><li>See <a href="config-database.xtp">Resin databases</a> documentation</li></ul></s1> <!-- db --><s1 name="ejb" title="EJB 3.0 (Enterprise Java Beans)">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -