rs.close();//记录
con.close();//连接
stmt.close();//createStatement()
con.close();//连接
stmt.close();//createStatement()
解决方案 »
- 如何调用新浪微博、腾讯微博、人人网开放平台API,实现用微博账户和人人网帐户在自己的网站登录?
- jsp中select的问题 急急!!!在线等,各位大侠帮帮忙
- CMS 设计与开发
- java中怎么实现IE浏览器中的网页另存为的功能
- 权限管理实现
- 找到一个还不错的JSP论坛
- 提问,spring声明事务和代码中显示开启事务。
- jsp如何处理特定格式文件,把数据导入数据库,请赐教?
- 我的tomcat安装后为什么服务不能启动?
- 开发jsp用什么软件好?
- 服务器端数据传到客户端???
- 用frontpage做个下拉菜单,想让他第一项非空,在提交的时候并能提示,我用了验证表单域的功能,可是怎么也提示不了的。急。。
ds...
if(this.stmt != null){
stmt.close();
stmt = null;
}
if(connection != null){
connection.close();
connection = null;
}
if(this.context != null){
context.close();
context = null;
} this.print("Close Connection is ok!");
}
if(this.context != null){
context.close();
context = null;
}
去掉后,错误还是出现,不知道为什么
提示为nullCDbUtil Error $$$: null
和jboss本身连接池有关系吗?
用的是jboss自带的连接池jboss2.4.3
在jboss.jcml里设置的....
先谢谢啦QQ;14281679
mail:[email protected]
<parameter><name>user</name><value>用户ID</value></parameter>
<parameter><name>password</name><value>用户密码</value></parameter>
<parameter><name>driverClassName</name>
<value>com.microsoft.jdbc.sqlserver.SQLServerDriver//如果你用的是SQL SERVER</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:microsoft:sqlserver://服务器ip:端口号;databasename=your databasename</value></parameter>
</ResourceParams>
加上这段话,相应的地方修改一个就可以了吗?
如果在jboss.jcml里,应该怎么配置,有没有资料?