12.4.4.2. JdbcMixedCacheStore Configuration (Remote Client-Server Mode)


The following is a configuration for a JdbcMixedCacheStore for JBoss Data Grid's Remote Client-Server mode with Passivation enabled.
  <subsystem xmlns="urn:infinispan:server:core:5.2" default-cache-container="default">
    <cache-container ... >
	<local-cache ... >
             ...
             <mixed-keyed-jdbc-store datasource="java:jboss/datasources/JdbcDS" 
				     passivation="true" 
				     preload="false" 
				     purge="false">
		 <property name="databaseType">${database.type}</property>
	         <binary-keyed-table prefix="MIX_BKT2">
                     <id-column name="id" 
		                type="${id.column.type}"/>
		     <data-column name="datum" 
			          type="${data.column.type}"/>
		     <timestamp-column name="version" 
				       type="${timestamp.column.type}"/>
                 </binary-keyed-table>
                 <string-keyed-table prefix="MIX_STR2">
                     <id-column name="id" 
			        type="${id.column.type}"/>
		     <data-column name="datum" 
				  type="${data.column.type}"/>
		     <timestamp-column name="version" 
			  	       type="${timestamp.column.type}"/>
 		 </string-keyed-table>
             </mixed-keyed-jdbc-store>
	</local-cache>
    </cache-container>
</subsystem>

Copy to Clipboard Toggle word wrap
The mixed-keyed-jdbc-store Element

The mixed-keyed-jdbc-store element specifies the configuration for a mixed keyed cache JDBC store.

  • The datasource parameter defines the name of a JNDI for the datasource.
  • The passivation parameter determines whether entries in the cache are passivated (true) or if the cache store retains a copy of the contents in memory (false).
  • The preload parameter specifies whether to load entries into the cache during start up. Valid values for this parameter are true and false.
  • The purge parameter specifies whether or not the cache store is purged when it is started. Valid values for this parameter are true and false.
The property Element

The property element contains information about properties related to the cache store.

  • The name parameter specifies the name of the cache store.
  • The value ${database.type} must be replaced by a valid database type value, such as DB2_390, SQL_SERVER, MYSQL, ORACLE, POSTGRES or SYBASE.
The mixed-keyed-table Element

The mixed-keyed-table element specifies information about the database table used to store mixed cache entries.

  • The prefix parameter specifies a prefix string for the database table name.
The string-keyed-table Element

The string-keyed-table element specifies information about the database table used to store string based cache entries.

  • The prefix parameter specifies a prefix string for the database table name.
The id-column Element

The id-column element specifies information about a database column that holds cache entry IDs.

  • The name parameter specifies the name of the database column.
  • The type parameter specifies the type of the database column.
The data-column Element

The data-column element contains information about a database column that holds cache entry data.

  • The name parameter specifies the name of the database column.
  • The type parameter specifies the type of the database column.
The timestamp-column Element

The timestamp-column element specifies information about the database column that holds cache entry timestamps.

  • The name parameter specifies the name of the database column.
  • The type parameter specifies the type of the database column.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat