[ 1898042 ] VPN/Wan transaction management bugs
This commit is contained in:
parent
0b4e764f46
commit
c1b14374e1
|
@ -213,8 +213,11 @@ public class Trx implements VetoableChangeListener
|
|||
{ // See ServerBean
|
||||
server.startTransaction(getTrxName());
|
||||
}
|
||||
else
|
||||
{
|
||||
log.log(Level.WARNING, "AppsServer not found");
|
||||
}
|
||||
}
|
||||
catch (RemoteException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||
|
@ -327,11 +330,14 @@ public class Trx implements VetoableChangeListener
|
|||
{ // See ServerBean
|
||||
return server.rollback(m_trxName);
|
||||
}
|
||||
else
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer not found");
|
||||
if (throwException)
|
||||
throw new SQLException("AppsServer not found");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (RemoteException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||
|
@ -375,9 +381,12 @@ public class Trx implements VetoableChangeListener
|
|||
sp = new SavepointVO(savepoint);
|
||||
return server.rollback(m_trxName, sp);
|
||||
}
|
||||
else
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer not found");
|
||||
throw new SQLException("AppsServer not found");
|
||||
}
|
||||
}
|
||||
catch (RemoteException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||
|
@ -449,11 +458,14 @@ public class Trx implements VetoableChangeListener
|
|||
{ // See ServerBean
|
||||
return server.commit(m_trxName);
|
||||
}
|
||||
else
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer not found");
|
||||
if (throwException)
|
||||
throw new SQLException("AppsServer not found");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch (RemoteException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||
|
@ -540,8 +552,11 @@ public class Trx implements VetoableChangeListener
|
|||
{ // See ServerBean
|
||||
server.closeTransaction(getTrxName());
|
||||
}
|
||||
else
|
||||
{
|
||||
log.log(Level.WARNING, "AppsServer not found");
|
||||
}
|
||||
}
|
||||
catch (RemoteException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||
|
@ -580,9 +595,12 @@ public class Trx implements VetoableChangeListener
|
|||
{ // See ServerBean
|
||||
return server.setSavepoint(m_trxName, name);
|
||||
}
|
||||
else
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer not found");
|
||||
throw new SQLException("AppsServer not found");
|
||||
}
|
||||
}
|
||||
catch (RemoteException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||
|
|
Loading…
Reference in New Issue