[ 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
|
{ // See ServerBean
|
||||||
server.startTransaction(getTrxName());
|
server.startTransaction(getTrxName());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
log.log(Level.WARNING, "AppsServer not found");
|
log.log(Level.WARNING, "AppsServer not found");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (RemoteException ex)
|
catch (RemoteException ex)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||||
|
|
@ -327,11 +330,14 @@ public class Trx implements VetoableChangeListener
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
return server.rollback(m_trxName);
|
return server.rollback(m_trxName);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer not found");
|
log.log(Level.SEVERE, "AppsServer not found");
|
||||||
if (throwException)
|
if (throwException)
|
||||||
throw new SQLException("AppsServer not found");
|
throw new SQLException("AppsServer not found");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (RemoteException ex)
|
catch (RemoteException ex)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||||
|
|
@ -375,9 +381,12 @@ public class Trx implements VetoableChangeListener
|
||||||
sp = new SavepointVO(savepoint);
|
sp = new SavepointVO(savepoint);
|
||||||
return server.rollback(m_trxName, sp);
|
return server.rollback(m_trxName, sp);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer not found");
|
log.log(Level.SEVERE, "AppsServer not found");
|
||||||
throw new SQLException("AppsServer not found");
|
throw new SQLException("AppsServer not found");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (RemoteException ex)
|
catch (RemoteException ex)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||||
|
|
@ -449,11 +458,14 @@ public class Trx implements VetoableChangeListener
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
return server.commit(m_trxName);
|
return server.commit(m_trxName);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer not found");
|
log.log(Level.SEVERE, "AppsServer not found");
|
||||||
if (throwException)
|
if (throwException)
|
||||||
throw new SQLException("AppsServer not found");
|
throw new SQLException("AppsServer not found");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (RemoteException ex)
|
catch (RemoteException ex)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||||
|
|
@ -540,8 +552,11 @@ public class Trx implements VetoableChangeListener
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
server.closeTransaction(getTrxName());
|
server.closeTransaction(getTrxName());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
log.log(Level.WARNING, "AppsServer not found");
|
log.log(Level.WARNING, "AppsServer not found");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (RemoteException ex)
|
catch (RemoteException ex)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||||
|
|
@ -580,9 +595,12 @@ public class Trx implements VetoableChangeListener
|
||||||
{ // See ServerBean
|
{ // See ServerBean
|
||||||
return server.setSavepoint(m_trxName, name);
|
return server.setSavepoint(m_trxName, name);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer not found");
|
log.log(Level.SEVERE, "AppsServer not found");
|
||||||
throw new SQLException("AppsServer not found");
|
throw new SQLException("AppsServer not found");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (RemoteException ex)
|
catch (RemoteException ex)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "AppsServer error", ex);
|
log.log(Level.SEVERE, "AppsServer error", ex);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue