Topic: 事务采用JTATranscation,进行新增,数据库老是挂着?????????

  Print this page

1.事务采用JTATranscation,进行新增,数据库老是挂着????????? Copy to clipboard
Posted by: lansf
Posted on: 2004-11-17 16:05

我现在采用了SB+Hibernate进行开发(事务直接采用了JTATranscation,在hibernate.cfg.xml进行了设置),不知为什么新增记录后,数据库老是挂着,好像是锁住了.代码如下:
try {
return dao.add(object);
} catch (Exception e) {
sessionContext.getRollbackOnly();
throw new Exception("新增失败!");
}

2.Re:事务采用JTATranscation,进行新增,数据库老是挂着????????? [Re: lansf] Copy to clipboard
Posted by: xidaboy
Posted on: 2004-11-17 17:02

没close吧,我也不是很清楚,根据经验推断


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923