Hi,

On 15/10/2013 14:49, drdwo wrote:
> Following the tutorial
> http://coheigea.blogspot.de/2013/07/apache-syncope-tutorial-part-i_26.html I
> was able to get Syncope running using Postgres as backend. Unfortunately it
> required adapting persistence.properties before building the war file. Is it
> possible to find a way to configure Syncope persistence at runtime? This way
> the war file could be used as distributed and we could still configure the
> backend.

Not sure if this helps in your case, but we have modified syncopeContext.xml
in such a way that persistence.properties is read from an external file
rather than from the classpath. This can be achieved by replacing

<value>classpath:persistence.properties</value>

by

<value>file:${syncopeConfigPath}/persistence.properties

The path to the configuration file can then be set via the system property
syncopeConfigPath when starting the application server.

This way, we can e.g. transport the .war-File from test to production without
modification.

Cheers,
  Guido

Reply via email to