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

OO-2612: update settings for Wildfly 10.1

parent e0e490c8
No related branches found
No related tags found
No related merge requests found
......@@ -15,17 +15,20 @@ To create your eclipse project, use these commands instead of the default one:
for JBoss AS:
mvn eclipse:clean eclipse:eclipse -P-tomcat,wildfly
Configuration WildFly (JBoss AS 8.0)
Configuration WildFly (JBoss AS 10.1)
------------------------------------
1. Define a JDBC connection pool in your standalone.xml configuration with a jndi-name like:
1. We need Hibernate 5.2, you need to use the utorial to update the version of hibernate
in Widlfly: http://docs.jboss.org/hibernate/orm/5.2/topical/html_single/wildfly/Wildfly.html
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:
db.source=jndi
db.jndi=java:jboss/datasources/OpenOLATDS
cluster.mode=Cluster
The cluster mode will disable the hibernate cache
2. Create a queue with a jndi-name like:
3. Create a queue with a jndi-name like:
java:jboss/exported/jms/queue/searchQueue
and a topic:
java:jboss/exported/jms/topic/sysbus
......@@ -36,6 +39,7 @@ Configuration WildFly (JBoss AS 8.0)
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
certificate.broker.jndi=java:jboss/exported/jms/queue/certificateQueue
Features located on the application server
......
......@@ -149,7 +149,7 @@
<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.jboss.as.jpa.hibernate4.infinispan.InfinispanRegionFactory</prop>
<prop key="hibernate.cache.region.factory_class">org.jboss.as.jpa.hibernate5.infinispan.InfinispanRegionFactory</prop>
<prop key="hibernate.cache.infinispan.statistics">true</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>
......
......@@ -200,6 +200,7 @@
<property name="hibernate.max_fetch_depth" value="10"/>
<property name="hibernate.connection.handling_mode" value="DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION"/>
<property name="hibernate.session_factory.interceptor" value="org.olat.core.commons.persistence.AuditInterceptor"/>
<property name="jboss.as.jpa.providerModule" value="org.hibernate:5.2" />
</properties>
</persistence-unit>
</persistence>
\ No newline at end of file
......@@ -14,6 +14,7 @@
</dependencies>
<exclusions>
<module name="org.slf4j" />
<module name="org.javassist" />
<module name="org.apache.commons.logging" />
</exclusions>
</deployment>
......
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