我想知道如何在业务逻辑层(BLL)中管理事务。
我已经搜索了这个网站来寻找我的问题的答案,但是没有成功。
我想在我的web应用程序中使用hibernate和struts。
在struts的操作中,我调用BLL函数。
在BLL函数中,我想要这样:
Begin transaction
try {
Call DAL to do something
...
Call DAL to do something
Commit Transaction
catch {
Roleback Transaction
}
在DAL中,我使用hibernate函数来执行操作。
但是