dev@glassfish.java.net

Re: api to determine if a particular domain is running

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Thu, 24 Apr 2008 13:35:29 -0700

Vince Kraemer wrote:
> Hi,
>
> If I have multiple builds of v3 installed on a single machine, they
> all end up getting assigned to the same ports... This question is NOT
> related to how to change ports to avoid this port clash...
>
> Since there are multiple domains that COULD be running when the ports
> are occupied, how do I determine which domain IS the one answering
> requests?
>
> One assumptions is the following: I have a list of possible domains
> that I need to check, identified by directory path.
>
> In the V2 plugin we have a hack; we know the domain directory. we get
> the domain directory from the server that is answering on the admin
> port and compare the two values.
>
> Will v3 be able to provide something better?
Yes,
Jerome just added a new command yesterday (__locations) that gives the
installdir or domain location.
Without it, we would have an issue in NetBeans or Eclipse to determine
which server is really running if more than one server is registered
with the same port (of course only 1 can run at a time, but mulitple
ones can be register). The location gives the extra info to
differentiate the one running.
Ludo
>
> vbk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>