Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Jetty Port
Jetty Port [message #86999] Thu, 19 April 2007 16:55 Go to next message
Eclipse UserFriend
Originally posted by: devaughn.cisco.com

Is there a way to get the port, Jetty is running on, after startup. We are specifying 0 as the port
so it will determine the first available port. However there does not seem to be a way to get the
port after it starts.

Thanks,
Dennis
Re: Jetty Port [message #87016 is a reply to message #86999] Thu, 19 April 2007 17:03 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
You should be able to get the http.port off of the service reference.
If you want to somehow uniquely identify the service instance you create you
can add "other.info" when you configure the instance.
-Simon

"Dennis Vaughn" <devaughn@cisco.com> wrote in message
news:f086v7$i3f$1@build.eclipse.org...
> Is there a way to get the port, Jetty is running on, after startup. We
> are specifying 0 as the port so it will determine the first available
> port. However there does not seem to be a way to get the port after it
> starts.
>
> Thanks,
> Dennis
Re: Jetty Port [message #87031 is a reply to message #87016] Thu, 19 April 2007 18:19 Go to previous message
Eclipse UserFriend
Originally posted by: devaughn.cisco.com

Hi Simon,

It worked perfectly thanks.

Dennis

Simon Kaegi wrote:
> You should be able to get the http.port off of the service reference.
> If you want to somehow uniquely identify the service instance you create you
> can add "other.info" when you configure the instance.
> -Simon
>
> "Dennis Vaughn" <devaughn@cisco.com> wrote in message
> news:f086v7$i3f$1@build.eclipse.org...
>> Is there a way to get the port, Jetty is running on, after startup. We
>> are specifying 0 as the port so it will determine the first available
>> port. However there does not seem to be a way to get the port after it
>> starts.
>>
>> Thanks,
>> Dennis
>
>
Previous Topic:Equinox inside a servlet container
Next Topic:ServiceLoader<?> and OSGi bundles - does OSGi bypass the internal ServiceLoader<?> code?
Goto Forum:
  


Current Time: Tue Apr 30 06:44:24 GMT 2024

Powered by FUDForum. Page generated in 0.03291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top