Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Jetty on Multiple Ports
Jetty on Multiple Ports [message #105986] Fri, 07 March 2008 23:19 Go to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Is it possible to have jetty listening on more than 1 port, or maybe
start multiple Jetty bundles (not sure what it means to start a bundle
twice) so that two separate bundles are listening this way?

Cheers,
Ian
Re: Jetty on Multiple Ports [message #106005 is a reply to message #105986] Sat, 08 March 2008 14:53 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Ian,

Ian Bull schrieb:
> Is it possible to have jetty listening on more than 1 port, or maybe
> start multiple Jetty bundles (not sure what it means to start a bundle
> twice) so that two separate bundles are listening this way?

You can use JettyConfigurator#startServer to start additional Jetty
servers. Each becomes its own HttpService.

http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/equinox/http/jetty/JettyConf igurator.html

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Jetty on Multiple Ports [message #106016 is a reply to message #106005] Sat, 08 March 2008 17:13 Go to previous message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Thanks Gunnar,

you come through every time :-)

Cheers,
Ian

Gunnar Wagenknecht wrote:
> Ian,
>
> Ian Bull schrieb:
>> Is it possible to have jetty listening on more than 1 port, or maybe
>> start multiple Jetty bundles (not sure what it means to start a bundle
>> twice) so that two separate bundles are listening this way?
>
> You can use JettyConfigurator#startServer to start additional Jetty
> servers. Each becomes its own HttpService.
>
> http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/equinox/http/jetty/JettyConf igurator.html
>
>
> -Gunnar
>
Previous Topic:[OSGi services] Connection configurations as services with a Connection Service consuming them
Next Topic:Remote install/start
Goto Forum:
  


Current Time: Fri Apr 19 09:44:20 GMT 2024

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

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

Back to the top