admin@glassfish.java.net

All _at_Params need to be Strings (for variable substitution) ...

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Tue, 07 Apr 2009 06:56:11 -0700

V3 asadmin command developers:

It's important to note that non-String fields in your command implementation
classes are not to be annotated with annotation @Param.

This is to support the variable expansion (token) support we have
for various values in domain.xml, for which options should be replaced
verbatim.

For example,

@Param (...)
Boolean enabled;

or

@Param (...)
Integer maxPoolSize;

is strongly discouraged. You should favor Strings. This facilitates the
use like --enabled=${ENABLED}, which is a requirement.

Let me know if you want to know more.

Regards,
Kedar