if (rs.getStatus() == ResourceStatus.FAILURE) { ec = ActionReport.ExitCode.FAILURE; if (rs.getMessage() == null) { report.setMessage(localStrings.getLocalString("create.mail.resource.fail", "Unable to create Mail Resource {0}.", jndiName)); report.setFailureCause(rs.getException()); if(rs.getMessage() != null){ report.setMessage(rs.getMessage());
return; if (rs.getMessage() != null) { report.setMessage(rs.getMessage()); if (rs.getMessage() == null) { report.setMessage(localStrings.getLocalString("create.jdbc.connection.pool.fail", "JDBC connection pool {0} creation failed", jdbc_connection_pool_id, ""));
if (rs.getMessage() != null){ report.setMessage(rs.getMessage());
if (rs.getMessage() != null){ report.setMessage(rs.getMessage());
JDBCConnectionPoolManager jdbcConnMgr = new JDBCConnectionPoolManager(); ResourceStatus rs = jdbcConnMgr.delete(servers, clusters, domain.getResources(), cascade.toString(), poolName); if (rs.getMessage() != null) report.setMessage(rs.getMessage()); if (rs.getStatus() == ResourceStatus.SUCCESS) { report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
if (rs.getMessage() != null){ report.setMessage(rs.getMessage());
public Resource createConfigBean(final Resources resources, HashMap attributes, final Properties properties, boolean validate) throws Exception{ setAttributes(attributes, null); ResourceStatus status = null; if(!validate){ status = new ResourceStatus(ResourceStatus.SUCCESS,""); }else{ status = isValid(resources, false, null); } if(status.getStatus() == ResourceStatus.SUCCESS){ return createConfigBean(resources, properties); }else{ throw new ResourceException(status.getMessage()); } }
public Resource createConfigBean(final Resources resources, HashMap attributes, final Properties properties, boolean validate) throws Exception{ setAttributes(attributes, null); ResourceStatus status = null; if(!validate){ status = new ResourceStatus(ResourceStatus.SUCCESS,""); }else{ status = isValid(resources, false, null); } if(status.getStatus() == ResourceStatus.SUCCESS){ return createConfigBean(resources, properties); }else{ throw new ResourceException(status.getMessage()); } }
public Resource createConfigBean(final Resources resources, HashMap attributes, final Properties properties, boolean validate) throws Exception{ setAttributes(attributes, null); ResourceStatus status = null; if(!validate){ status = new ResourceStatus(ResourceStatus.SUCCESS,""); }else{ status = isValid(resources, false, null); } if(status.getStatus() == ResourceStatus.SUCCESS){ return createConfigBean(resources, properties); }else{ throw new ResourceException(status.getMessage()); } }
public Resource createConfigBean(final Resources resources, HashMap attributes, final Properties properties, boolean validate) throws Exception{ setAttributes(attributes, null); ResourceStatus status = null; if(!validate){ status = new ResourceStatus(ResourceStatus.SUCCESS,""); }else{ status = isValid(resources, false, null); } if(status.getStatus() == ResourceStatus.SUCCESS){ return createConfigBean(resources, properties); }else{ throw new ResourceException(status.getMessage()); } }
public Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception { setAttributes(attributes); ResourceStatus status = null; if(!validate){ status = new ResourceStatus(ResourceStatus.SUCCESS,""); }else{ status = isValid(resources); } if(status.getStatus() == ResourceStatus.SUCCESS){ return createConfigBean(resources, properties); }else{ throw new ResourceException(status.getMessage()); } } }
public Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception { setAttributes(attributes, null); ResourceStatus status = null; if(!validate){ status = new ResourceStatus(ResourceStatus.SUCCESS,""); }else{ status = isValid(resources, false, null); } if(status.getStatus() == ResourceStatus.SUCCESS){ return createConfigBean(resources, properties); }else{ throw new ResourceException(status.getMessage()); } } }
if (rs.getMessage() != null){ report.setMessage(rs.getMessage());
if (rs.getMessage() != null){ report.setMessage(rs.getMessage());
/** * 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); } } }