[id='using_datasources']
= Using Datasources in JDBC Cache Stores
Use a shared, managed datasource in your JDBC cache store configuration instead
of specifying individual connection properties for each cache definition.

.Prerequisites

Create a managed datasource for JDBC cache stores in your {brandname} server
configuration.

.Procedure

* Reference the JNDI name of the datasource in the JDBC cache store
configuration of your cache configuration, as in the following example:

[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/server_jdbc_cache_stores.xml[]
----
