[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] how could I initialize embedded jetty 8 with properties from CM ?
|
Hi Hugues,
I've found this bugzilla where the referred feature was implemented:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=158172.
Investigating at this class
org.eclipse.equinox.http.jetty.internal.Activator I could see that a
ManagerFactory is being created.
But it is not what I was expected because the Http service is being
registered using defaults coming from System Properties...
The CM will be used by this class HttpServerManager, but only when
something in the configuration changes, after the httpservice get up
first time.
I think that my best approach at the moment is to create a wrapper
bundle that gets data from CM at its initialization and start the Jetty
using it .
Now I need to discover what should I do to start jetty by myself.
Perhaps using JettyConfigurator ?
BTW, the best documentation is the OSGi compendium
(http://www.osgi.org/Download/Release4V43).
I've found this too that gives a nice instroduction:
http://dz.prosyst.com/pdoc/mBS_Ext/um_sh/framework-ee-addon/bundles/osgi/config/config.html.
cheers,
Cristiano
On 31/01/12 22:40, Hugues Malphettes wrote:
Hi Cristiano,
The Configuration Manager Service is not my specialty.
It was developed at the eclipse-platform project.
Can you remind us where is the doc about it and what it does?
Thanks,
Hugues
On Tue, Jan 31, 2012 at 11:50 PM, Cristiano Gavião<cvgaviao@xxxxxxxxx> wrote:
Hi,
I'm using
eclipse-SDK-4.2M5/plugins/org.eclipse.equinox.http.jetty_3.0.0.v20111202-1436.jar
And I would like to use Configuration Manager Service to setup the
jetty8.10RC4 initialization.
I've tried this in a bundle config, that is being initialized before jetty's
ones, but is not working:
properties = getJettyProperties();
factoryPid = "org.eclipse.equinox.http.jetty.config"
configuration = configurationAdmin.createFactoryConfiguration(
factoryPid, null);
configuration.update(properties);
at getJettyProperties I'm adding http.port=8088 to a dictionary.
please, could someone help me ?
regards
Cristiano
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users