portals-portalapps-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r944376 - in /portals/applications/sandbox/content/trunk: pom.xml src/main/webapp/META-INF/context.xml
Date Fri, 14 May 2010 18:34:12 GMT
Author: woonsan
Date: Fri May 14 18:34:12 2010
New Revision: 944376

URL: http://svn.apache.org/viewvc?rev=944376&view=rev
Log:
Adding session pool example

Modified:
    portals/applications/sandbox/content/trunk/pom.xml
    portals/applications/sandbox/content/trunk/src/main/webapp/META-INF/context.xml

Modified: portals/applications/sandbox/content/trunk/pom.xml
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/content/trunk/pom.xml?rev=944376&r1=944375&r2=944376&view=diff
==============================================================================
--- portals/applications/sandbox/content/trunk/pom.xml (original)
+++ portals/applications/sandbox/content/trunk/pom.xml Fri May 14 18:34:12 2010
@@ -177,6 +177,13 @@
     </dependency>
     
     <dependency>
+      <groupId>org.onehippo.ecm.hst.components</groupId>
+      <artifactId>hst-session-pool</artifactId>
+      <version>${hst.version}</version>
+      <scope>runtime</scope>
+    </dependency>
+    
+    <dependency>
       <groupId>org.onehippo.ecm.hst</groupId>
       <artifactId>hst-content-beans</artifactId>
       <version>${hst.version}</version>

Modified: portals/applications/sandbox/content/trunk/src/main/webapp/META-INF/context.xml
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/content/trunk/src/main/webapp/META-INF/context.xml?rev=944376&r1=944375&r2=944376&view=diff
==============================================================================
--- portals/applications/sandbox/content/trunk/src/main/webapp/META-INF/context.xml (original)
+++ portals/applications/sandbox/content/trunk/src/main/webapp/META-INF/context.xml Fri May
14 18:34:12 2010
@@ -16,11 +16,34 @@
 <Context crossContext="true">
   
   <!-- Simple Jackrabbit RMI based repository resource -->
+  <!--
   <Resource name="jcr/repository" auth="Container"
             type="javax.jcr.Repository"
             factory="org.apache.portals.applications.content.jndi.RepositoryObjectFactory"
             repositoryUrl="rmi://127.0.0.1:1099/hipporepository"
   />
+  -->
+  
+  <!-- HST-2 Session Pooling Repository resource -->
+  <Resource name="jcr/repository" auth="Container"
+            type="javax.jcr.Repository"
+            factory="org.hippoecm.hst.core.jcr.pool.MultiplePoolingRepositoryFactory"
+            repositoryAddress="rmi://127.0.0.1:1099/hipporepository, rmi://127.0.0.1:1099/hipporepository"
+            defaultCredentialsUserID="editor, admin"
+            defaultCredentialsPassword="editor, admin"
+            readOnly="false, false"
+            maxActive="40, 40"
+            maxIdle="10, 10"
+            initialSize="0, 0"
+            maxWait="10000, 10000"
+            testOnBorrow="true, true"
+            testOnReturn="false, false"
+            testWhileIdle="false, false"
+            timeBetweenEvictionRunsMillis="60000, 60000"
+            numTestsPerEvictionRun="1, 1"
+            minEvictableIdleTimeMillis="60000, 60000"
+            refreshOnPassivate="true, true" 
+  />
   
   <!-- Simple Jackrabbit OCM Provider resource -->
   <!--



Mime
View raw message