简体   繁体   中英

Jetty - Add JDBC session clustering

I'm trying to add session clustering in jetty and haven't been succcessfull. tried different article and solutions. Below are my trials. Any help is greatly appreciated

Trial 1

Adding --module=jdbc-sessions in start.ini didn't work. Say a warning that jdbc-sessions is not a valid module java -jar ../start.jar WARNING: Cannot enable requested module [jdbc-sessions]: not a valid module name.

Trial 2 Tried adding --add-to-startd while starting jetty. It didn't add jdbc-sessions to start.ini file.

Jetty version:jetty-distribution-9.2.15

JDBC Sessions were not managed by the Jetty Module system until Jetty 9.3. Documentation for how to implement JDBC Sessions in Jetty 9.2 can be found here . If you wanted to you could create your own JDBC module using the templates shown here .

On a side note, I would recommend upgrading your Jetty distribution unless you have a compelling reason to stay with 9.2. Jetty 9.4 has a milestone release out already and a full release is expected in the next month or two.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM