Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Re: Configure Jetty in OSGi
Re: Configure Jetty in OSGi [message #129969] Tue, 28 April 2009 06:56 Go to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Michael Vandenberg schrieb:
> I am trying to create a Jetty Fragment which includes the jetty.xml file
> to configure Jetty within my OSGi container.

You cannot configure Jetty this way. The only way to configure Jetty
(prior to 3.5) is to provide system properties (through the command line
or config.ini). The helps in setting up SSL.

See here:
http://dev.eclipse.org/newslists/news.eclipse.technology.equ inox/msg02563.html

Starting with 3.5(M6) there is a new way to customize a started Jetty
instance. It works by providing an implementation of JettyCustomizer
class via a fragment to org.eclipse.equinox.http.jetty.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox /compendium/bundles/org.eclipse.equinox.http.jetty6/src/org/ eclipse/equinox/http/jetty/JettyCustomizer.java?root=RT_Proj ect&view=markup

This allows you to configure Jetty programmatically through its Java API.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Configure Jetty in OSGi [message #129982 is a reply to message #129969] Tue, 28 April 2009 15:28 Go to previous messageGo to next message
Michael Vandenberg is currently offline Michael VandenbergFriend
Messages: 1
Registered: July 2009
Junior Member
Gannar,

Thanks for the info. I am new to OSGi and Jetty. What I am attempting to
do is optimize our server implementation and in researching Jetty it
appears with a stand alone Jetty implementation, modifying the jetty.xml
(maxThread specifically) will increase performance. In the context of
Jetty in a OSGi container I am not sure how to do this. I'll look into
the JettyCustomizer and see what is available to me.

Thanks again for your response.

Mike
Re: Configure Jetty in OSGi [message #129995 is a reply to message #129969] Tue, 28 April 2009 17:29 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
"Gunnar Wagenknecht" <gunnar@wagenknecht.org> wrote in message
news:gt69bv$los$1@build.eclipse.org...
> Michael Vandenberg schrieb:
>> I am trying to create a Jetty Fragment which includes the jetty.xml file
>> to configure Jetty within my OSGi container.
>
> You cannot configure Jetty this way. The only way to configure Jetty
> (prior to 3.5) is to provide system properties (through the command line
> or config.ini). The helps in setting up SSL.
>
Two things to add to this:
1) System properties is not the only way. You can also do configuration
using JettyConfigurator or the OSGi Configuration Admin service. Direct use
of JettyConfigurator is the way the IDE is using this stuff for Help/User
Assistance.
2) Perhaps in 3.6 support for "jetty.xml" will be there as the Jetty folk
have signaled an interest in providing richer configuration mechanisms for
us.

> See here:
> http://dev.eclipse.org/newslists/news.eclipse.technology.equ inox/msg02563.html
>
> Starting with 3.5(M6) there is a new way to customize a started Jetty
> instance. It works by providing an implementation of JettyCustomizer
> class via a fragment to org.eclipse.equinox.http.jetty.
>
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox /compendium/bundles/org.eclipse.equinox.http.jetty6/src/org/ eclipse/equinox/http/jetty/JettyCustomizer.java?root=RT_Proj ect&view=markup
>
> This allows you to configure Jetty programmatically through its Java API.
>
> -Gunnar
>
> --
> Gunnar Wagenknecht
> gunnar@wagenknecht.org
> http://wagenknecht.org/
Previous Topic:How to enable AUTO_UPDATE in 3.5M6
Next Topic:Load a OSGI bundle w/o EclipseStarter
Goto Forum:
  


Current Time: Fri Apr 26 09:37:16 GMT 2024

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

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

Back to the top