Why not make RemoteAdminCommand abstract and do a full clean & build?
You'll find out right away if it is used anywhere...
On 10/30/2010 9:02 AM, Tim Quinn wrote:
> This will probably not affect most people on the list but I want you
> to be aware of the following.
>
> Old news: Code which runs in the DAS and submits admin commands to an
> instance should use ClusterOperationUtil.replicateCommand (generally
> preferred in most cases).
>
> New news: If such code must instead instantiate RemoteAdminCommand
> itself it should now instantiate ServerRemoteAdminCommand rather than
> RemoteAdminCommand. ServerRemoteAdminCommand extends
> RemoteAdminCommand and knows how to provide the DAS SSL authentication
> which the instance will insist upon if secure admin is enabled.
>
> I have already changed the places I know about (StopInstanceCommand,
> RestartInstanceCommand, and ChangeAdminPasswordCommand) that used to
> instantiate RemoteAdminCommand. If you know of other places please
> change them. If you write new code that needs to submit commands to
> an instance and for some reason it cannot use
> ClusterOperationUtil.replicateCommand please instantiate
> ServerRemoteAdminCommand.
>
> - Tim
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
--
Byron Nevins - Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188