@Override
    public void validate() throws InvalidPropertyException {
        if (this.serverName == null) {
            throw new InvalidPropertyException("serverName must not be null");
        }
        if (this.portNumber == null) {
            throw new InvalidPropertyException("portNumber must not be null");
        }
        if (this.portNumber <= 0 || this.portNumber >= 65536) {
            throw new InvalidPropertyException("Invalid portNumber " + this.portNumber);
        }
    }
@ Override public void validate ( ) throws InvalidPropertyException { if ( this . serverName == null ) { throw new InvalidPropertyException ( "serverName must not be null" ) ; } if ( this . portNumber == null ) { throw new InvalidPropertyException ( "portNumber must not be null" ) ; } if ( this . portNumber <= 0 || this . portNumber >= 65536 ) { throw new InvalidPropertyException ( "Invalid portNumber " + this . portNumber ) ; } }
@see javax.resource.spi.ActivationSpec#validate()