} else { report.setActionExitCode(ActionReport.ExitCode.FAILURE); if (rs.getException()!= null) { report.setFailureCause(rs.getException()); Logger.getLogger(DeleteJdbcConnectionPool.class.getName()).log(Level.SEVERE, "Something went wrong in delete-jdbc-connection-pool", rs.getException());
if (rs.getException() != null) report.setFailureCause(rs.getException());
"JDBC connection pool {0} creation failed", jdbc_connection_pool_id, "")); if (rs.getException() != null) report.setFailureCause(rs.getException()); } else {
if (rs.getException() != null) report.setFailureCause(rs.getException());
if (rs.getException() != null) report.setFailureCause(rs.getException());
if (rs.getException() != null) report.setFailureCause(rs.getException());
if (rs.getException() != null) report.setFailureCause(rs.getException());
if (rs.getException() != null) report.setFailureCause(rs.getException());
/** * Executes the command with the command parameters passed as Properties * where the keys are the paramter names and the values the parameter values * * @param context information */ public void execute(AdminCommandContext context) { final ActionReport report = context.getActionReport(); try { ResourceStatus rs = managedExecutorServiceMgr.delete(domain.getResources(), jndiName, target); if(rs.getMessage() != null){ report.setMessage(rs.getMessage()); } if (rs.getStatus() == ResourceStatus.SUCCESS) { report.setActionExitCode(ActionReport.ExitCode.SUCCESS); } else { report.setActionExitCode(ActionReport.ExitCode.FAILURE); if (rs.getException() != null) report.setFailureCause(rs.getException()); } } catch(Exception e) { report.setMessage(localStrings.getLocalString("delete.managed.executor.service.failed", "Managed executor service {0} deletion failed", jndiName)); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e); } } }
/** * Executes the command with the command parameters passed as Properties * where the keys are the paramter names and the values the parameter values * * @param context information */ public void execute(AdminCommandContext context) { final ActionReport report = context.getActionReport(); try { ResourceStatus rs = managedThreadFactoryMgr.delete(domain.getResources(), jndiName, target); if(rs.getMessage() != null){ report.setMessage(rs.getMessage()); } if (rs.getStatus() == ResourceStatus.SUCCESS) { report.setActionExitCode(ActionReport.ExitCode.SUCCESS); } else { report.setActionExitCode(ActionReport.ExitCode.FAILURE); if (rs.getException() != null) report.setFailureCause(rs.getException()); } } catch(Exception e) { report.setMessage(localStrings.getLocalString("delete.managed.thread.factory.failed", "Managed thread factory {0} deletion failed", jndiName)); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e); } } }
/** * Executes the command with the command parameters passed as Properties * where the keys are the paramter names and the values the parameter values * * @param context information */ public void execute(AdminCommandContext context) { final ActionReport report = context.getActionReport(); try { ResourceStatus rs = managedScheduledExecutorServiceMgr.delete(domain.getResources(), jndiName, target); if(rs.getMessage() != null){ report.setMessage(rs.getMessage()); } if (rs.getStatus() == ResourceStatus.SUCCESS) { report.setActionExitCode(ActionReport.ExitCode.SUCCESS); } else { report.setActionExitCode(ActionReport.ExitCode.FAILURE); if (rs.getException() != null) report.setFailureCause(rs.getException()); } } catch(Exception e) { report.setMessage(localStrings.getLocalString("delete.managed.scheduled.executor.service.failed", "Managed scheduled executor service {0} deletion failed", jndiName)); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e); } } }
/** * Executes the command with the command parameters passed as Properties * where the keys are the paramter names and the values the parameter values * * @param context information */ public void execute(AdminCommandContext context) { final ActionReport report = context.getActionReport(); try { ResourceStatus rs = contextServiceMgr.delete(domain.getResources(), jndiName, target); if(rs.getMessage() != null){ report.setMessage(rs.getMessage()); } if (rs.getStatus() == ResourceStatus.SUCCESS) { report.setActionExitCode(ActionReport.ExitCode.SUCCESS); } else { report.setActionExitCode(ActionReport.ExitCode.FAILURE); if (rs.getException() != null) report.setFailureCause(rs.getException()); } } catch(Exception e) { report.setMessage(localStrings.getLocalString("delete.context.service.failed", "Context service {0} deletion failed", jndiName)); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e); } } }
/** * Executes the command with the command parameters passed as Properties * where the keys are the paramter names and the values the parameter values * * @param context information */ public void execute(AdminCommandContext context) { final ActionReport report = context.getActionReport(); try { ResourceStatus rs = jdbcResMgr.delete(domain.getResources(), jndiName, target); if(rs.getMessage() != null){ report.setMessage(rs.getMessage()); } if (rs.getStatus() == ResourceStatus.SUCCESS) { report.setActionExitCode(ActionReport.ExitCode.SUCCESS); } else { report.setActionExitCode(ActionReport.ExitCode.FAILURE); if (rs.getException() != null) report.setFailureCause(rs.getException()); } } catch(Exception e) { report.setMessage(localStrings.getLocalString("delete.jdbc.resource.fail", "{0} delete failed ", jndiName)); report.setActionExitCode(ActionReport.ExitCode.FAILURE); report.setFailureCause(e); } } }