Is there an external method to get the randomly chosen port number when standalone help is launched [message #471299] |
Wed, 19 December 2007 15:09  |
Eclipse User |
|
|
|
Originally posted by: nospam_kowalskilee.gmail.com
Hi,
This is a repost of a question originally posted by Pierre Candela. I
responded incorrectly to his original post, so am reposting the question
in case it accidentally got overlooked.
When you launch the standalone help by API, the help system randomly
selects a port for the internal app server to run on.
Post-launch, are there any external methods or other API to find out
which port was selected?
Pierre pointed out the internal
org.eclipse.help.internal.standalone.Options.getConnectionFi le(). But is
there something that is external to get this info?
Thanks!
Lee Anne
(Pierre, if I have again misunderstood the gist of your original
question, do let us know.)
|
|
|
Re: Is there an external method to get the randomly chosen port number when standalone help is launc [message #471429 is a reply to message #471299] |
Thu, 03 January 2008 14:43  |
Eclipse User |
|
|
|
Looking through the source it looks as though this static method would
work. It's internal and therefore could change without notice in a
future release.
org.eclipse.help.internal.server.WebappManager.getPort()
Lee Anne wrote:
> Hi,
>
> This is a repost of a question originally posted by Pierre Candela. I
> responded incorrectly to his original post, so am reposting the question
> in case it accidentally got overlooked.
>
> When you launch the standalone help by API, the help system randomly
> selects a port for the internal app server to run on.
>
> Post-launch, are there any external methods or other API to find out
> which port was selected?
>
> Pierre pointed out the internal
> org.eclipse.help.internal.standalone.Options.getConnectionFi le(). But is
> there something that is external to get this info?
>
> Thanks!
> Lee Anne
>
> (Pierre, if I have again misunderstood the gist of your original
> question, do let us know.)
|
|
|
Re: Is there an external method to get the randomly chosen port number when standalone help is launc [message #606321 is a reply to message #471299] |
Thu, 03 January 2008 14:43  |
Eclipse User |
|
|
|
Looking through the source it looks as though this static method would
work. It's internal and therefore could change without notice in a
future release.
org.eclipse.help.internal.server.WebappManager.getPort()
Lee Anne wrote:
> Hi,
>
> This is a repost of a question originally posted by Pierre Candela. I
> responded incorrectly to his original post, so am reposting the question
> in case it accidentally got overlooked.
>
> When you launch the standalone help by API, the help system randomly
> selects a port for the internal app server to run on.
>
> Post-launch, are there any external methods or other API to find out
> which port was selected?
>
> Pierre pointed out the internal
> org.eclipse.help.internal.standalone.Options.getConnectionFi le(). But is
> there something that is external to get this info?
>
> Thanks!
> Lee Anne
>
> (Pierre, if I have again misunderstood the gist of your original
> question, do let us know.)
|
|
|
Powered by
FUDForum. Page generated in 0.04194 seconds