Changes between Version 21 and Version 22 of v6/pgsummary
- Timestamp:
- 05/31/2012 09:48:02 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v6/pgsummary
v21 v22 109 109 } catch (Exception e) { 110 110 et.rollback(); 111 } finally { 112 em.close(); 111 113 } 112 114 3.使用JDBC … … 174 176 java.lang.IllegalStateException: Not allowed to create transaction on shared EntityManager - use Spring transactions or 175 177 EJB CMT instead 176 异常,初步估计和驱动有关,换成以下两种写法正常 178 异常,初步估计和驱动有关,换成以下两种写法正常(建议使用方法1,统一使用容器进行管理) 177 179 1. 178 180 final EntityManager em = EnvUtils.getEnv().getEm(); … … 198 200 } catch (Exception e) { 199 201 et.rollback(); 202 }finally { 203 em.close(); 200 204 } 201 205 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/global/2008/images/jss/m_logo091125.jpg)