1 23 24 package com.sun.enterprise.cli.commands; 25 26 import com.sun.enterprise.cli.framework.*; 27 28 public class CreatePersistenceResourceCommand extends GenericCommand 29 { 30 private final static String JDBC_JNDI_NAME = "jdbcjndiname"; 31 private final static String POOL_NAME = "connectionpoolid"; 32 33 public boolean validateOptions() throws CommandValidationException 34 { 35 if (getOption(JDBC_JNDI_NAME) != null && getOption(POOL_NAME) != null) 37 throw new CommandValidationException(getLocalizedString("MutuallyExclusiveOption", 38 new Object [] { JDBC_JNDI_NAME, 39 POOL_NAME })); 40 41 return super.validateOptions(); 42 } 43 } 44 | Popular Tags |