The Shibboleth IdP V4 software will leave support on September 1, 2024.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Namespace: urn:mace:shibboleth:2.0:resolver
Schema: http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd

Overview

The <SimpleManagedConnection> element defines a JDBC connection using a custom syntax that supports some limited options. It is aimed only at getting users started with database connections while testing the rest of the functionality.

It defines a pool of connections to the specified driver and database with 5 to 20 connections and a 5 second wait time, which are hardcoded values.

We suggest the use of externally defined connections using the <BeanManagedConnection> element to fully tailor a suitable connection pool.

Reference

Examples

<SimpleManagedConnection
        jdbcDriver="org.hsqldb.jdbc.JDBCDriver" jdbcURL="jdbc:hsqldb:mem:RDBMSDataConnectorStore"
        jdbcUserName="jdbcUser" jdbcPassword="Whatever" />

This is exactly equivalent to defining a <BeanManagedConnection> referring to this configuration.

Equivalent Native Spring definition
<bean id="simpleDataConnector" class="org.apache.commons.dbcp2.BasicDataSource"
        p:driverClassName="org.hsqldb.jdbc.JDBCDriver"
        p:url="jdbc:hsqldb:mem:RDBMSDataConnectorStore"
        p:username="jdbcUser"
        p:password="Whatever"
        p:maxTotal="20"
        p:maxIdle="5"
        p:maxWaitMillis="5000" />


  • No labels