Skip to main content



      Home
Home » Eclipse Projects » Equinox » Jetty Port
Jetty Port [message #86999] Thu, 19 April 2007 12: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 13:03 Go to previous messageGo to next message
Eclipse UserFriend
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 14: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 Jul 22 08:40:43 EDT 2025

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

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

Back to the top