看板 [ java ]
討論串[J2EE] JPA PESSIMISTIC_WRITE
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者KekeMonster (KekeMonster)時間10年前 (2015/08/13 05:00), 10年前編輯資訊
0
0
1
內容預覽:
沒用過,. 不過參考 http://www.objectdb.com/java/jpa/persistence/lock 描述,. " A lock mode can also be set for a query in order to lock all the query result obje
(還有102個字)

推噓0(0推 0噓 7→)留言7則,0人參與, 最新作者luoqr (.....)時間10年前 (2015/08/12 22:42), 編輯資訊
0
0
0
內容預覽:
以下是EJB的兩個function,我用 client 產生兩個thread分別呼叫. EJB 的 test1() 和 test2():. 照理來說,test1()中把 u lock 起來後,睡了十秒的期間執行了 test2(). 而 test2() 理論上想要把同一筆資料再鎖起來時應該要發生. L
(還有1318個字)
首頁
上一頁
1
下一頁
尾頁