...
Optionally, define a datasource for internal storage (following example is for MySQL): please check that the connection parameters are same configure as configured above.
Syncope, when not finding a datasource called jdbc/syncopeDataSource
, will connect to internal storage by instantiating a new connection upon request: this is of course strongly discouraged for any production environment.
Code Block |
---|
<Resource name="jdbc/syncopeDataSource" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" testWhileIdle="true" testOnBorrow="true" testOnReturn="true" validationQuery="SELECT 1" validationInterval="30000" maxActive="50" minIdle="2" maxWait="10000" initialSize="2" removeAbandonedTimeout="10" removeAbandoned="true" logAbandoned="true" suspectTimeout="10" timeBetweenEvictionRunsMillis="5000" minEvictableIdleTimeMillis="5000" jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer" username="syncope" password="syncope" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/syncope?characterEncoding=UTF-8"/> |
Be sure to put the JDBC driver JAR file under $CATALINA_HOME/lib
for the Datasource you have defined above.
Other setup tasks
Use datasource
Syncope, when not finding a datasource called jdbc/syncopeDataSource
, will connect to internal storage by instantiating a new connection upon request: this is of course strongly discouraged for any production environment.
When using a container-managed datasource, be sure to uncomment the Uncomment element <resource-ref ... />
element in core/src/main/webapp/WEB-INF/web.xml
, if you have defined a datasource.
Connecting console to core
Modify console/src/main/resources/configuration.properties
so that provided properties reflects the scheme, hostname and port number where your JEE container is running and the URL context where Syncope core will be deployed.
...
At this point you can deploy core/target/syncope.war
and console/target/syncope-console.war
to your JEE container.
Test your
...
installation
- Point your favorite browser to administration console at http://localhost:9080/syncope-console/ (assuming that your JEE container is running on localhost, port 9080)
- Login as 'admin' / 'password'