Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: Run Syncope in real environments is a prerequisite for this page.

Core

OpenJPA Remote Event Notification

When deploying multiple Syncope instances insisting on a single database or database cluster, it is of fundamental importance that the contained OpenJPA instances are correctly configured for remote event notification.

...

Info

OpenJPA documentation refers to direct configuration under META-INF/persistence.xml; for example:

Code Block
languagexml
<property name="openjpa.RemoteCommitProvider" value="tcp(Addresses=10.0.1.10;10.0.1.11)"/>

for usage in core/src/main/resources/persistenceContextEMFactory.xml this becomes:

Code Block
languagexml
<entry key="openjpa.RemoteCommitProvider" value="tcp(Addresses=10.0.1.10;10.0.1.11)"/>

...


Console

Apache Tomcat 7

Having this as special reference,

  1. Add <distributable> in coreconsole/src/main/webapp/WEB-INF/web.xml
  2. Be sure that all cluster nodes have time aligned (via NTP or other)
  3. Enable Tomcat 7 clustering (session replication is not needed)
  4. Deploy your WAR artifacts to all cluster nodes