| 
| disable default start of Jetty [message #119203] | Fri, 10 October 2008 04:44  |  | 
| Eclipse User  |  |  |  |  | Hi All, 
 I want to use Jetty servlet container to host my servlets within
 OSGi, however, the equinox.http.jetty bundle seems to start jetty by
 default on port 80, or the port specified by the
 org.osgi.service.http.port property in config.ini. However I want to
 programmatically start the Jetty on a my own port at runtime. I am able to
 use JettyConfigurator class for this purpose and am finding it convenient,
 however, I see that the default server instance still keeps running and I
 am unable to stop that from happening. Is there a way i could specify that
 the default server instance should not get started. ?
 
 Thanks for your help in advance.
 
 Thanks,
 Srijith.
 |  |  |  | 
|  | 
|  | 
| 
| Re: disable default start of Jetty [message #119297 is a reply to message #119244] | Fri, 10 October 2008 13:25  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 there are two ways of disabling the auto-start of the Jetty HTTP server
 in the Jetty bundle.
 
 1. Use lazy activation for the Jetty bundle
 2. Set property "org.eclipse.equinox.http.jetty.autostart=false" in
 config.ini (or via -D... VM argument)
 
 For example, option 1 is used in Eclipse itself. If you start Eclipse,
 the Jetty bundle is there but the HTTP server will not be started
 because the bundle is activated lazy, i.e. when some of its classes are
 accessed.
 
 -Gunnar
 
 --
 Gunnar Wagenknecht
 gunnar@wagenknecht.org
 http://wagenknecht.org/
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.10344 seconds