此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【nightancer】截止到2008-07-08 18:37:57的历史汇总数据(不包括此帖):
发帖的总数量:0 发帖的总分数:0 每贴平均分数:0
回帖的总数量:5 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:0 结贴的总分数:0
无满意结贴数:0 无满意结贴分:0
未结的帖子数:0 未结的总分数:0
结贴的百分比:---------------------结分的百分比:---------------------
无满意结贴率:---------------------无满意结分率:---------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
楼主【nightancer】截止到2008-07-08 18:37:57的历史汇总数据(不包括此帖):
发帖的总数量:0 发帖的总分数:0 每贴平均分数:0
回帖的总数量:5 得分贴总数量:0 回帖的得分率:0%
结贴的总数量:0 结贴的总分数:0
无满意结贴数:0 无满意结贴分:0
未结的帖子数:0 未结的总分数:0
结贴的百分比:---------------------结分的百分比:---------------------
无满意结贴率:---------------------无满意结分率:---------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
解决方案 »
- <bean:define 标签使用问题,请问如果对应的bean是null,如何返回一个空的bean?
- 各位前辈在weblogic中如何分辩部属的EJB是remote还是local的?
- web中如何抓取客户端的域帐号--请教高手
- EJB 调用CMP实体Bean 异常EJBException
- hibernate运行错误,急!关系是双主键
- axis定制发布时的问题
- 请教Axis的Service Styles和日志配置问题!(在线等待)
- servelet中如何传递大量数据?
- 初学Spring的注解方式注入,,请教一个基本问题。。求解答。
- eclipse maven项目未知异常,有木有知道怎么解决的
- wsdl文件拿来生成java类,在通过类来发布服务!!高手进进
- resin3.1.0问题
org.springframework.orm.hibernate3.SessionFactoryUtils
方法:
public static void releaseSession
(
org.hibernate.Session session,
org.hibernate.SessionFactory sessionFactory
)属性:
session - 要关闭的hibernate 的session
sessionFactory - 创建该session的sessionFactory对象(可为空)
/**
* Close the given Session, created via the given factory,
* if it is not managed externally (i.e. not bound to the thread).
* @param session the Hibernate Session to close (may be <code>null</code>)
* @param sessionFactory Hibernate SessionFactory that the Session was created with
* (can be <code>null</code>)
*/
public static void releaseSession(Session session, SessionFactory sessionFactory) {
if (session == null) {
return;
}
// Only close non-transactional Sessions.
if (!isSessionTransactional(session, sessionFactory)) {
closeSessionOrRegisterDeferredClose(session, sessionFactory);
}
}
仅当session不再是事务中的时候释放连接