dev@glassfish.java.net

Re: Example of support for --target option?

From: Vijay Ramachandran <vijay.ramachandran_at_oracle.com>
Date: Mon, 28 Jun 2010 18:08:04 -0700

IIRC, Jerome recommended this :

     @Inject(name= ServerEnvironment.DEFAULT_INSTANCE_NAME)
     protected Server server;

Vijay

On 6/28/10 3:04 PM, Amy Roh wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>