Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
http-2.0.4
-
None
Description
I want to configure the felix jetty http service using config admin, so I set the following properties to stop it from starting automatically:
org.osgi.service.http.port = -1
org.apache.felix.http.enable = false
However, when the bundle is activated, it still reports that it has started:
% [INFO] Started jetty 6.1.x at port -1
A 'Jetty HTTP Service' thread is actually started, but as http is not enabled, no http server connector is created.
The above 'Started' message should not appear when http (and https) are disabled, and it would be good if the 'Jetty HTTP Service' was not created until the service is enabled using config admin, for example:
% setpid org.apache.felix.http org.osgi.service.http.port==1234 org.apache.felix.http.enable==true
% [INFO] Started jetty 6.1.x at port 1234