[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Declarative service in jetty 7.2.2
|
On Feb 17, 2011, at 15:28 , Mitul Adhia wrote:
> Hi Henrik,
>
> Thanks a ton it works now !!!!!
>
> I have one more question to configure ssl or resource file there are corresponding xml files i.e jetty-ssl.xml & jetty-fileserver.xml do i need to add them in the same location where my jetty.xml is available or i can append the data which are available in both the xml's in single jetty.xml.... ? What is your suggestion ?
I just added an ssl connector into jetty.xml:
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
<Set name="host">
<SystemProperty name="jetty.ssl.host" default="0.0.0.0" />
</Set>
<Set name="Port">
<SystemProperty name="jetty.ssl.port" default="8443" />
</Set>
<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="AcceptQueueSize">100</Set>
<Set name="Password">
<SystemProperty name="jetty.ssl.password" default="..." />
</Set>
<Set name="Keystore">
<SystemProperty name="jetty.ssl.keystore" default="..." />
</Set>
<Set name="KeystoreType">
<SystemProperty name="jetty.ssl.keystoretype" default="..." />
</Set>
<Set name="KeyPassword">
<SystemProperty name="jetty.ssl.keypassword" default="..." />
</Set>
<Set name="Truststore">
<SystemProperty name="jetty.ssl.keystore" default="..." />
</Set>
<Set name="TrustPassword">
<SystemProperty name="jetty.ssl.password" default="..." />
</Set>
<Set name="TruststoreType">
<SystemProperty name="jetty.ssl.keystoretype" default="..." />
</Set>
</New>
</Arg>
</Call>
We use the jetty.ssl.* properties to override the default values when we develop. The values used in deployment are set as defaults. Note that we reuse the jetty.ssl.keystore* stuff, which you might or might not want to do.
> If answer is yes do i need to create customize handler for resourcefile handler / ssl connector the way it was develop for servlet context handler ?
> Something like this
>
> MyFileHandlet extends
> MySSLConnector extends SslSelectChannelConnector .
Nope, shouldn't be necessary.
// Henrik