[jboss-user] [Datasource Configuration] - Re: Jboss 7.x - HA Web Sessions via Database Persistence with Oracle

Paul Ferraro do-not-reply at jboss.com
Mon Jul 2 10:53:12 EDT 2012

Paul Ferraro [https://community.jboss.org/people/pferraro] created the discussion

"Re: Jboss 7.x - HA Web Sessions via Database Persistence with Oracle"

To view the discussion, visit: https://community.jboss.org/message/745489#745489

To enable session persistence to a database:
1. Configure your datasource.  See  https://community.jboss.org/docs/DOC-16657 https://community.jboss.org/wiki/DataSourceConfigurationInAS7
2. Assuming you're using a non-HA profile (e.g. standalone.xml), add a "web" cache container to the infinispan subsystem.  The default cache of this cache container should be a local-cache configured with a jdbc cache store using the datasource defined in step 1.
<cache-container name="web" default-cache="local" module="org.jboss.as.clustering.web.infinispan">
  <local-cache name="local" batching="true">
    <key-based-jdbc-store datasource="java:jboss/datasources/LiferayPool_test" passivation="false" purge="false"/>
3. Make sure your web application's web.xml declares itself as <distributable/>.

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120702/3611f4eb/attachment.html 

More information about the jboss-user mailing list