提高Hibernate 3 啟動速度(翻譯)
摘要: 原文地址:http://www.hibernate.org/300.html
在Tomcat5.5.x環境下,調用Configuration().addCacheableFile來載入配置,建立Hibernate SessionFactory,成功地提高了載入速度。
推薦你只是在開發階段采用這樣的方式載入,最后的產品發布階段你仍需使用經典的Hibernate.cfg.xml文件,通過Tomcat的ServletContextListener API在應用程序部署的時候建立Hibernate SessionFactory,而不是在程序第一次調用Hiberante的時候。
閱讀全文
一些鏈接(二)——關于緩存
摘要: Spring框架的聲明式緩存服務
Spring框架提供了聲明式的緩存服務,看樣子似乎不錯:
原文地址:http://dev2dev.bea.com/pub/a/2006/05/declarative-caching.html
中文譯文:http://www.crackj2ee.com/Article/ShowArticle.asp?ArticleID=661
閱讀全文