- invalid or close trx name to DB.prepareStatement will create orphan transaction in system
This commit is contained in:
Heng Sin Low 2009-12-07 09:37:04 +00:00
parent 64021ec448
commit 3cb217bb60
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class PreparedStatementProxy extends StatementProxy {
try { try {
Connection conn = null; Connection conn = null;
Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo
.getTrxName(), true); .getTrxName(), false);
if (trx != null) { if (trx != null) {
conn = trx.getConnection(); conn = trx.getConnection();
} else { } else {

View File

@ -113,7 +113,7 @@ public class StatementProxy implements InvocationHandler {
try try
{ {
Connection conn = null; Connection conn = null;
Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo.getTrxName(), true); Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo.getTrxName(), false);
if (trx != null) if (trx != null)
{ {
conn = trx.getConnection(); conn = trx.getConnection();