- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 Spring 对hibernate事务处理的实现过程(3) spring怎么commit和rollback的
先看代码protected Object invokeWithinTransaction(Method method, Class targetClass, final InvocationCallback invocation) throws Throwable { // If the transaction attribute is null, the method i
2016-04-12 23:35:06
693
原创 Spring 对hibernate事务处理的实现过程(1) hibernate 自己是怎么做的
想看看spring到底是怎么来对hibernate进行事务管理的,首先看看hibernate对于事务是如何处理的。通常,hibernate处理事务的过程如下Session session = sf.openSession(); Transaction transaction = session.beginTransaction(); User user = new User();
2016-04-10 15:14:17
526
翻译 Wait Sets and Notification(java语言规范17.2章节)
翻译自jls8.pdf的17.2节,原文文档http://download.youkuaiyun.com/detail/admiral_dota/938707417.2 Wait Sets and Notification每个对象,除了有一个关联的监视器之外,还有一个关联的wait集合。这个集合是一个线程的集合。当一个线程初始创建的时候,它的wait集合是空的。把线程加入集合和把线程从集合中删除的
2016-01-02 17:34:08
332
原创 Java 并发包中AbstractQueuedSynchronizer 实现的同步器
先上整出来ReentrantLock对AQS的使用流程,ReentrantLock代表的通用的独占锁的构造方法,后续上代码分析
2015-12-29 20:44:45
314
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人