Page tree
Skip to end of metadata
Go to start of metadata

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> 


Schema Name and Location

This element is defined by the urn:mace:shibboleth:2.0:resolver schema, which is located at http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd.

Example

<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 pooling) are unlikely to be correct for production.

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.

  • No labels