|
Re: disable default start of Jetty [message #119231 is a reply to message #119203] |
Fri, 10 October 2008 12:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: jacek.pospychala.pl.ibm.com
Srijith,
maybe Jetty is starting on Equinox startup, because it's bundle is
listed in osgi.bundles variable in config.ini?
Srijith pisze:
> 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. ?
|
|
|
|
Re: disable default start of Jetty [message #119297 is a reply to message #119244] |
Fri, 10 October 2008 17:25 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
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.03000 seconds