Skip to content
Snippets Groups Projects
Commit 4c1a3302 authored by srosse's avatar srosse
Browse files

no-jira: update deployment for WildFly (JBoss AS 8) which can use Infinispan...

no-jira: update deployment for WildFly (JBoss AS 8) which can use Infinispan as second level cache natively (and clustered)
parent d5873336
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ and for Glassfish
Configuration JBoss AS 7.1
--------------------------
1. I use a JBoss AS 7.1.1 with Hibernate upgraded to the latest version.
1. I use a JBoss AS 7.1.1 with Hibernate upgraded to the latest version or JBoss AS 7.1.3.
2. Define a JDBC connection pool in your standalone.xml configuration with a jndi-name like:
java:jboss/datasources/OpenOLATDS and set this JNDI name
in olat.local.properties set the following properties:
......@@ -38,6 +38,29 @@ Configuration JBoss AS 7.1
search.broker.jndi=java:jboss/exported/jms/queue/searchQueue
index.broker.jndi=java:jboss/exported/jms/queue/indexQueue
exam.broker.jndi=java:jboss/exported/jms/queue/examQueue
4. In the databaseCoreContext.xml in the bean with id: hibernateCacheProps_enabled_Cluster
remove the properties "hibernate.cache.region.factory_class" and "hibernate.cache.infinispan.cachemanager"
set the two cache properties "hibernate.cache.use_query_cache" and "hibernate.cache.use_second_level_cache" to false
Configuration WildFly (JBoss AS 8.0)
------------------------------------
1. Define a JDBC connection pool in your standalone.xml configuration with a jndi-name like:
java:jboss/datasources/OpenOLATDS and set this JNDI name
in olat.local.properties set the following properties:
db.source=jndi
db.jndi=java:jboss/datasources/OpenOLATDS
2. Create a queue with a jndi-name like:
java:jboss/exported/jms/queue/searchQueue
and a topic:
java:jboss/exported/jms/topic/sysbus
in olat.local.properties set the following properties:
jms.provider=jndi
jms.broker.jndi=java:/ConnectionFactory
sysbus.broker.jndi=java:jboss/exported/jms/topic/sysbus
search.broker.jndi=java:jboss/exported/jms/queue/searchQueue
index.broker.jndi=java:jboss/exported/jms/queue/indexQueue
exam.broker.jndi=java:jboss/exported/jms/queue/examQueue
Configuration Glassfish 3.1
......
......@@ -423,7 +423,14 @@
<profile>
<id>jbossas7</id>
<dependencies>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
<version>${com.sun.jersey.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
......
......@@ -171,10 +171,9 @@
<props>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.region.factory_class">org.hibernate.cache.infinispan.JndiInfinispanRegionFactory</prop>
<prop key="hibernate.cache.region.factory_class">org.jboss.as.jpa.hibernate4.infinispan.InfinispanRegionFactory</prop>
<prop key="hibernate.cache.infinispan.cachemanager">java:jboss/infinispan/container/hibernate</prop>
<prop key="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</prop>
<prop key="hibernate.cache.infinispan.use_synchronization">false</prop>
<prop key="hibernate.cache.infinispan.cachemanager">java:jboss/infinispan/hibernate</prop>
</props>
</constructor-arg>
</bean>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment