当前位置: 技术问答>java相关
高分求助在线等...连接池的问题
来源: 互联网 发布时间:2017-03-15
本文导语: 我在servlet中,向连接缓冲池(书上抄的)请求一个Connection对象con,然后调用con.setCommit(false)时,出错,错误为: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start manual transaction mode because there are clone...
我在servlet中,向连接缓冲池(书上抄的)请求一个Connection对象con,然后调用con.setCommit(false)时,出错,错误为:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start manual transaction mode because there are cloned connections.
但将页面刷新之后,就可以成功提交到数据库。请高手指教。
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start manual transaction mode because there are cloned connections.
但将页面刷新之后,就可以成功提交到数据库。请高手指教。
|
try to add a property to your connection code 'SelectMethod=cursor'