admin@glassfish.java.net

Re: getting admin port number

From: Kedar Mhaswade <kedar.java.net_at_gmail.com>
Date: Tue, 22 Jun 2010 13:05:46 -0700

On Mon, Jun 21, 2010 at 12:10 AM, Carla Mott <carla.mott_at_oracle.com> wrote:

> Hi
>
> What's the easiest way for code in the DAS to get the admin port number? I
> see that I can get the hostname from a system property but what about the
> port? I need to pass these values to some commands when running over ssh.
>

Does the code that wants to call a "command" run in DAS itself? If yes, then
that code is already trusted, authenticated etc, should not need any
hostname, port number for the DAS. That code should just look up the command
(Command Object from habitat) and execute it.
No?

Gosh! Has all of this changed so much in last 3-4 months? :-)

-Kedar


> Thanks,
> Carla
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>
>