![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
阿宇万岁
学无止境
展开
-
Ehcache集群
Ehcache集群的两种方式:组播方式和点对点方式一、 组播方式1) 配置cacheManagerPeerProviderFactoryclass="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"properties="peerDiscovery=automatic,multicastGr原创 2015-08-03 16:14:05 · 653 阅读 · 0 评论 -
connection、HttpSession、hibernate中的session、transaction
connection和HttpSession的区别session(会话)和connection(连接)的定义:connection:是一个物理的概念,它指的是一个通过网络建立的客户端和专有服务器(Dedicated Server)或共享服务器(Shared Server)的一个网络连接,既是一条物理路劲。session:是一个逻辑的概念,它是存在于实例中,一个连接可以拥有多原创 2015-11-05 21:37:23 · 810 阅读 · 0 评论 -
OpenSessionInView的优缺点
优点:1、事务边界控制 2、懒加载缺点:事务和Session存在时间延长,对系统并发性有严重影响 如果Session长时间打开,会长时间占用内存和数据库连接原创 2015-11-02 20:22:24 · 700 阅读 · 0 评论