- 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 {
Connection conn = null;
Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo
.getTrxName(), true);
.getTrxName(), false);
if (trx != null) {
conn = trx.getConnection();
} else {

View File

@ -113,7 +113,7 @@ public class StatementProxy implements InvocationHandler {
try
{
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)
{
conn = trx.getConnection();