admin@glassfish.java.net

Re: getting admin port number

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Tue, 22 Jun 2010 13:18:22 -0700

Kedar Mhaswade wrote:
>
>
> On Mon, Jun 21, 2010 at 12:10 AM, Carla Mott <carla.mott_at_oracle.com
> <mailto: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?

The use case for SSH is when the DAS wants to run a *local* command
on a remote host. And yes, there is one local command which requires
--host and --port so it can create das.properties correctly. Hence the
original question of what is the best way for code in the DAS to get the
admin http port number.

Which I still don't know if I've seen a simple, clear, definitive
answer to
(or maybe it was lost in the meta-discussion).

Joe

>
> 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
> <mailto:admin-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
> <mailto:admin-help_at_glassfish.dev.java.net>
>
>