Resin文档阅读笔记
阅读文档对应的版本为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 mypasswordTo 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>
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· PowerShell开发游戏 · 打蜜蜂
· 凌晨三点救火实录:Java内存泄漏的七个神坑,你至少踩过三个!