Methods Summary |
---|
private void | fine(java.lang.String s)
_sLogger.log(Level.FINE, s);
|
private com.sun.enterprise.admin.event.AdminEventResult | forwardEvent(com.sun.enterprise.admin.event.AdminEvent e)
AdminEventResult result = null;
result = AdminEventMulticaster.multicastEvent(e);
return result;
|
private java.lang.String | getServerName()
return ApplicationServer.getServerContext().getInstanceName();
|
public void | recoverTransactions()Recovers transaction for given server instance
fine("TransactionsRecoverytMBean.recoveryTransactions for server");
sendTransactionsRecoveryEvent(getServerName(), getServerName(), null);
|
private void | sendTransactionsRecoveryEvent(java.lang.String destinationServer, java.lang.String serverToRecover, java.lang.String transactionLogDir)
AdminEvent event = new TransactionsRecoveryEvent(getServerName(),
serverToRecover,
transactionLogDir);
event.setTargetDestination(destinationServer);
AdminEventResult res = forwardEvent(event);
if(!AdminEventResult.SUCCESS.equals(res.getResultCode()))
{
Throwable exc = null;
exc = res.getFirstThrowable();
if (exc != null) {
throw new MBeanConfigException(_strMgr.getString("tx.exceptionInTargetServer",
exc.getMessage()));
}
throw new MBeanConfigException(_strMgr.getString("tx.notSuccessInSendReturn",
res.getResultCode()));
}
|