Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use the jetty plugin you have to configure it in the scheduler.xml: {{<spooler><source>
<config

Code Block

 <spooler>
  <config ...>

...


    <plugins>
      ...

...


      <plugin java_class="com.sos.scheduler.engine.plugins.jetty.JettyPlugin">

...


        <plugin.config />

...


      </plugin>

...


      ...

...


    </plugins>

...


    ...

...


  </config>

...


 </spooler>

...


Please note that it is necessary to specify an empty plugin.config element.
</span>

...

With a second connector it is possible to define a communication channel via https (ssl):

Code Block

...


 <Call name="addConnector">

...


  <Arg>
    <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">

...


      <Arg>
        <New class="org.eclipse.jetty.util.ssl.SslContextFactory">

...


          <Set name="keyStore"><SystemProperty name="jetty.home" default="." />/ssl/jetty.jks</Set>

...


          <Set name="keyStorePassword">jobscheduler</Set>

...


          <Set name="keyManagerPassword">jobscheduler</Set>

...


          <Set name="trustStore"><SystemProperty name="jetty.home" default="." />/ssl/jetty.jks</Set>

...


          <Set name="trustStorePassword">jobscheduler</Set>

...


        </New>

...


      </Arg>

...


      <Set name="port">8443</Set>

...


      <Set name="maxIdleTime">30000</Set>

...


    </New>

...


  </Arg>

...


 </

...

Call>

The SSL connection expects the jetty keystore file jetty.jks in the subfolder ssl (under the JobScheduler data folder). With the configuration above you can connect JobScheduler via https at port 8443.
</span>

...