Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty-maven-plugin 9.4.x session handling

Hi
Unfortunately I'm not sure if it's really possible...
I was thinking of something such 
<webApp>
  <sessionHandler implementation="org.eclipse.jetty.server.session.SessionHandler">
    <sessionIdManager implementation="org.eclipse.jetty.server.session.DefaultSessionIdManager">
      <storeDirectory>${project.build.directory}/jetty-sessions-ids</storeDirectory>
    </sessionIdManager>
    <sessionCache implementation="org.eclipse.jetty.server.session.DefaultSessionCache">
      <sessionDataStore implementation="org.eclipse.jetty.server.session.FileSessionDataStore">
        <storeDir>${project.build.directory}/jetty-sessions</storeDir>
      </sessionDataStore>
    </sessionCache>
  </sessionHandler>
</webApp>

but some of the objects doesn't empty constructors needed by Maven.
Others any idea?
I think you will have to load an issue and contribute or wait for a fix.


On Sat, May 27, 2017 at 8:28 AM, Filipe Sousa <natros@xxxxxxxxx> wrote:
This is what I have been doing with jetty-maven-plugin 9.3.x to keep sessions with hot reload

      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.3.17.v20170317</version>
        <configuration>
          <httpConnector>
            <host>localhost</host>
            <port>${jetty.port}</port>
          </httpConnector>
          <reload>manual</reload>
          <jettyXml>${project.basedir}/src/main/etc/jetty.xml</jettyXml>
          <webApp>
            <contextPath>/candidaturas</contextPath>
            <webInfIncludeJarPattern>.*/webjars/.*\.jar$</webInfIncludeJarPattern>
            <containerIncludeJarPattern>^$</containerIncludeJarPattern>
            <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
              <resourcesAsCSV>${project.basedir}/src/main/webapp,${project.basedir}/../target/gwt/launcherDir</resourcesAsCSV>
            </baseResource>
            <sessionHandler implementation="org.eclipse.jetty.server.session.SessionHandler">
              <sessionManager implementation="org.eclipse.jetty.server.session.HashSessionManager">
                <storeDirectory>${project.basedir}/target/jetty-sessions</storeDirectory>
              </sessionManager>
            </sessionHandler>
          </webApp>
        </configuration>
      </plugin>

What is the equivalent to handle the sessions in 9.4.x?

Thanks
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Olivier

Back to the top