<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Jboss 7.x - HA Web Sessions via Database Persistence with Oracle
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/techtalk">manish suriya</a> in <i>Datasource Configuration</i> - <a href="https://community.jboss.org/message/746675#746675">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><blockquote class="jive-quote"><p>Paul Ferraro wrote:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Actually, you can eliminate the sticky session requirement by using an <invalidation-cache/> instead of a <local-cache/>.  This, of course, would require that you use an HA-aware profile (e.g. standalone-ha.xml).</p></blockquote><p>Hi Paul,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks for your reply.</p><p>As per your suggestions I am using <invalidation-cache> in standalone-ha.xml... I am getting below error..</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-java">15:06:38,303 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.infinispan.web.database.config: org.jboss.msc.service.StartException in service jboss.infinispan.web.database.config: JBAS010291: Failed to add INVALIDATION_ASYNC database cache to non-clustered web cache container.
        at org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationService.start(CacheConfigurationService.java:100)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [rt.jar:1.6.0_03]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [rt.jar:1.6.0_03]
        at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_03]
 
15:06:38,350 INFO  [org.infinispan.cdi.InfinispanExtension] (MSC service thread 1-2) ISPN017001: Infinispan CDI extension version: 5.1.4.FINAL
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>configuration in standalone-ha.xml is.. since infinispan 1.2 doesn't supports <<code class="jive-code jive-xml"><span class="jive-xml-tag">key-based-jdbc-store</span></code>>  i am using <string-keyed-jdbc-store>. database type is oracle.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-java"><cache-container name=<font color="red">"web"</font> default-cache=<font color="red">"database"</font>>
  <invalidation-cache name=<font color="red">"database"</font> mode=<font color="red">"ASYNC"</font>  batching=<font color="red">"true"</font>>
   <string-keyed-jdbc-store datasource=<font color="red">"java:jboss/datasources/LiferayPool_test"</font> passivation=<font color="red">"false"</font> preload=<font color="red">"true"</font> purge=<font color="red">"false"</font>>
            <property name=<font color="red">"databaseType"</font>>oracle</property>
            <string-keyed-table prefix=<font color="red">"stringbased "</font>>
                <id-column name=<font color="red">"id"</font>
                           type=<font color="red">"VARCHAR2"</font>/>
                    <data-column name=<font color="red">"datum"</font>
                             type=<font color="red">"BLOB"</font>/>
                    <timestamp-column name=<font color="red">"version"</font>
                              type=<font color="red">"NUMBER"</font>/>
            </string-keyed-table>
        </string-keyed-jdbc-store>
  </invalidation-cache>
</cache-container>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Could you please guide me what I am doing wrong ?</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/746675#746675">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>