dev@glassfish.java.net

Re: Example of support for --target option?

From: Amy Roh <amy.roh_at_oracle.com>
Date: Mon, 28 Jun 2010 15:04:29 -0700

The CLI developer guide mentions CreateJdbcConnectionPool.java for an
example and this uses
SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME for target option's
default value. However,
SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME is @Deprecated.
Why is this deprecated and should we use
SystemPropertyConstants.DAS_SERVER_NAME instead then?

@I18n("create.jdbc.connection.pool")
public class CreateJdbcConnectionPool implements AdminCommand {

    @Param(optional=true, defaultValue =
SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME)
    String target = SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME;

Thanks,
Amy