On May 24, 2013, at 7:28 AM, 杨华杰 wrote:
> Hi
>
> Basically I want to configure a tomcat cluster.
>
> I am using tomcat 6 and tomcat 7 and I want to store the session in
> database.
>
> I am looking to this document
> http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html . But
> unfortunately I didn't find any document to store session in database. Is
> there any? Just let me know which document I can refer.
>
>
>
>
> Regards,
> Hua Jie
If you look at the "Overview" section of the documentation that you linked to,
you'll see that there are three options for session replication.
" • Using session persistence, and saving the session to a shared file
system (PersistenceManager + FileStore)
• Using session persistence, and saving the session to a shared
database (PersistenceManager + JDBCStore)
• Using in-memory-replication, using the SimpleTcpCluster that ships
with Tomcat 6 (lib/catalina-tribes.jar + lib/catalina-ha.jar)"
https://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html#Overview
Documentation for the first two can be found here.
https://tomcat.apache.org/tomcat-6.0-doc/config/manager.html#Nested_Components
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]