28.12.2012 Views

SAS 9.3 Web Applications: Clustering - Index of - SAS

SAS 9.3 Web Applications: Clustering - Index of - SAS

SAS 9.3 Web Applications: Clustering - Index of - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12 Chapter 2 / Common Pre-Configuration Tasks<br />

<br />

org.jboss.cache.eviction.LRUPolicy<br />

<br />

<br />

<br />

5<br />

<br />

<br />

5000<br />

1000<br />

<br />

<br />

<br />

<br />

false<br />

<br />

<br />

2 Make a backup <strong>of</strong> the <strong>SAS</strong>-config-dir/Levn/<strong>Web</strong>/Staging/<br />

sas.workflow<strong>9.3</strong>.ear file.<br />

3 In a temporary directory, extract the contents <strong>of</strong> the sas.workflow<strong>9.3</strong>.ear file.<br />

4 In another temporary directory, extract the contents <strong>of</strong> the sas.workflow.war file.<br />

5 In a third temporary directory, extract the contents <strong>of</strong> the sas.workflow.war/<br />

WEB-INF/lib/sas.workflow.engine.server.jar file.<br />

6 Add the jbosscache.xml file to the root <strong>of</strong> the extracted JAR file. Put it in the<br />

same directory as the existing ehcache.xml file.<br />

7 Edit each hibernate mapping file (*.hbm.xml) in the hibernate directory <strong>of</strong> the<br />

extracted JAR file. Replace all instances <strong>of</strong> read-write with transactional.<br />

8 Repackage sas.workflow.engine.server.jar from the temporary directory and copy<br />

it to the first temporary directory. (Overwrite the original JAR file.)<br />

9 Edit the sas.workflow.war/WEB-INF/spring-config/dataconfig.xml<br />

file and make the following changes:<br />

a Change the hibernate.cache.provider class from<br />

org.hibernate.cache.EhCacheProvider to<br />

org.hibernate.cache.OptimisticTreeCacheProvider.<br />

b Change the hibernate.cache.provider_configuration_file_resource_path<br />

from /ehcache.xml to jbosscache.xml. Do not add a leading slash.<br />

c Add two new elements under the existing hibernate properties. See<br />

the following code example for the changes:<br />

<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!