The example code in listing 1 demonstrates a bean - managed transaction sometimes called a 清單1中的示例代碼演示了bean管理的事務(wù)(有時(shí)也稱為
And deploy it using container - managed transactions and a transactional attribute of 中的ejb ,并用容器托管的事務(wù)部署它,將業(yè)務(wù)方法的事務(wù)屬性設(shè)定為
In short , another best practice is to use container managed transactions wherever possible 簡(jiǎn)而言之,另外一個(gè)最佳實(shí)踐是盡可能的使用容器管理的事務(wù)。
The stub and skeleton objects also take care of beginning and committing container - managed transactions (存根和骨架對(duì)象還負(fù)責(zé)開(kāi)始和提交容器管理的事務(wù)。 )
Understanding the information in this section can help improve your effectiveness in managing transaction logs 了解本節(jié)中的信息可以提高管理事務(wù)日志的效率。
If the mdb is using container - managed transactions and the method in question has a transaction attribute of 如果mdb正在使用容器托管的事務(wù),而且要處理的方法具有
In this way , you can manage transactions at the level of the foreach loop instead of the package level 通過(guò)這種方式,可以在foreach循環(huán)級(jí)別而不是包級(jí)別管理事務(wù)。
As you can see , the mdb bean type is message - driven , and the ejb uses container managed transactions 可以看到, mdb bean類型是消息驅(qū)動(dòng)的,并且ejb使用容器管理的事務(wù)。
Manages transactions and uses locking to control concurrent user access to rows and schemas in the database 管理事務(wù)并使用鎖定來(lái)控制對(duì)數(shù)據(jù)庫(kù)中的行和架構(gòu)執(zhí)行的并發(fā)用戶訪問(wèn)。
Because sessions manage transactions , a single transaction could not be used to control both a queue and a topic 因?yàn)闀?huì)話管理著事務(wù),所以單個(gè)事務(wù)不能既用來(lái)控制隊(duì)列,又用來(lái)控制主題。