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 2 Next »

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

The <SimpleManagedConnection> element explicitly describes a JDBC connection via a custom syntax. It is aimed only at getting users started with database connections.

We suggest the use of externally defined connections using the <BeanManagedConnection>

Reference

Attributes

NameTypeDefaultDescription

jdbcDriver

string, required
Class name of the JDBC driver used to connect to the database

jdbcURL

string, required

JDBC URL to connect to. These are usually of the form jdbc:databaseProduceName:databaseSpecificInformation

jdbcUserName

string
The username to use to communicate with the database

jdbcPassword

string
The password to use to communicate with the database

Child Elements

No child elements are defined.

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"
/>

Note that three values (maxTotal, maxIdle, MaxWaitMillis) are hard wired.

These values (and other values defaulted by the dbcp polling) are unlikely to be correct for production.

  • No labels