-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPN-11205 Server DataSource suggested doc edits
- Loading branch information
1 parent
6f1055b
commit 2602136
Showing
3 changed files
with
67 additions
and
49 deletions.
There are no files selected for viewing
20 changes: 12 additions & 8 deletions
20
documentation/src/main/asciidoc/stories/assembly_server_datasources.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
documentation/src/main/asciidoc/topics/proc_server_using_datasources.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[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+] | ||
---- | ||
<distributed-cache-configuration name="persistent-cache"> | ||
<persistence> | ||
<string-keyed-jdbc-store> | ||
<data-source jndi-url="jdbc/datasource"/> <1> | ||
<string-keyed-table drop-on-exit="true" | ||
create-on-start="true" | ||
prefix="TBL"> | ||
<id-column name="ID" type="VARCHAR(255)"/> | ||
<data-column name="DATA" type="BINARY"/> | ||
<timestamp-column name="TS" type="BIGINT"/> | ||
<segment-column name="S" type="INT"/> | ||
</string-keyed-table> | ||
</string-keyed-jdbc-store> | ||
</persistence> | ||
</distributed-cache-configuration> | ||
---- | ||
|
||
<1> Specifies the JNDI name that you provided for the datasource connection in | ||
your {brandname} server configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters