1. 程式人生 > >Resin文檔閱讀筆記

Resin文檔閱讀筆記

rem net 日誌 conf cluster rep director them tle

閱讀文檔對應的版本為Resin4.0,且基本只關註Standard版本的功能。

1、Resin可以註冊為服務:

To install the service, use

C:/> resin-3.2.x/resin.exe -install -conf conf/myconf.xml /
                              -user MyResinUser -password mypassword

To remove the service, use

C:/> resin-3.2.x/resin.exe -remove

2、Resin Logs目錄裏面有訪問服務器訪問日誌在./logs子目錄內。

3、Resin服務器本身提供一套類似spring Security的可配置權限控制解決方案.詳見http://www.caucho.com/resin/admin/security.xtp

4、顯式定義Web應用目錄的方法:

<host id="">  
     <web-app id=‘/‘ document-directory="/usr/local/apache/htdocs"/>  
   </host>  

5、Resin本身提供依賴註入:Java Injection (CanDI, JSR-299) Injection :http://www.caucho.com/resin/admin/candi.xtp ,註意這句:CanDI provides a straightforward driver for integrating Resin capabilities with popular frameworks. Struts2, Spring, Mule, and Wicket have already been integrate。

6、在database configuration部分,註意現在的配置有Protecting the database password的方法。

7、關於Server Push (Comet):Resin‘s Comet support focuses on solving the concurrency issues around server push.

8、Resin內建Rewrite and Dispatch機制

9、Resin‘s remoting lets applications write services as plain java objects and export them with a choice of protocols, including Hessian, Burlap, CXF (SOAP), XFire. Because Resin activates the service as an IoC singleton, the service can use any of Resin‘s IoC capabilities, including dependency injection, AOP interception, EJB transactions, and event handling.

10、virtual host的設置樣例:

<resin xmlns="http://caucho.com/ns/resin">  
<cluster id="">  
<host host-name="www.foo.com">  
  <host-alias>foo.com</host-alias>  
  <host-alias>web.foo.com</host-alias>  
  <root-directory>/opt/www/www.foo.com</root-directory>  
  <web-app id="/" document-directory="webapps/ROOT">  
      
  </web-app>  
  ...  
</host>  
</cluster>  
</resin>  

Resin文檔閱讀筆記