fine("TrasactionsRecoverytMBean.recoveryTransactions for server: "+serverToRecover+
" destinationServer"+destinationServer+" transactionLogDir"+transactionLogDir);
if(serverToRecover==null)
throw new MBeanConfigException(_strMgr.getString("tx.noServerToRecover"));
if(!isServer(serverToRecover))
throw new MBeanConfigException(_strMgr.getString("tx.ServerBeRecoveredIsNotKnown", serverToRecover));
if(isServerRunning(serverToRecover))
{
if(destinationServer!=null && !serverToRecover.equals(destinationServer))
//server running + destination not null & not equal
throw new MBeanConfigException(_strMgr.getString("tx.runningServerBeRecoveredFromAnotherServer", serverToRecover, destinationServer));
if(transactionLogDir!=null)
//server running + logDir notnot
throw new MBeanConfigException(_strMgr.getString("tx.logDirShouldNotBeSpecifiedForSelfRecovering", serverToRecover));
}
else if(destinationServer==null)
{
// server not running + no destination
throw new MBeanConfigException(_strMgr.getString("tx.noDestinationServer", serverToRecover));
}
else if(!isServerRunning(destinationServer))
{
// server not running + destination not running
throw new MBeanConfigException(_strMgr.getString("tx.destinationServerIsNotAlive", serverToRecover));
}
else if(transactionLogDir==null)
{
// server not running + destination not running
throw new MBeanConfigException(_strMgr.getString("tx.logDirNotSpecified", serverToRecover));
}
if(destinationServer!=null && !isServer(destinationServer))
throw new MBeanConfigException(_strMgr.getString("tx.DestinationServerIsNotKnown", destinationServer));
//here we are only if parameters consistent
if(destinationServer==null)
destinationServer = serverToRecover;