If you're interested in another version, click it below:
• GigaSpaces 6.5
Overview
GigaSpaces JDBC Storage Adapter supports implicit data recovery from the database when a space is started, stores Entry meta data, and persists a redo log. The data source and space are constantly synchronized with each-other. More information can be found at Persistent Space Schema and Persistency Configuration Files.
Note, configuration of the JDBC storage adapter is now consolidated and can be completly controlled within OpenSpaces space tag.
Configuration
Configuring a JDBC storage adapter is done using properties within the Space construction. Here is an example of storing the information within HSQL:
<os-core:space id="space" url="/./space" schema="persistent"><os-core:properties><props><!-- Properties that control the persistent schema --><prop key="space-config.persistent.StorageAdapterClass">
com.j_spaces.sadapter.GenericJDBC.JDBCStorageAdapter
</prop><prop key="space-config.persistent.StorageAdapterURL">/GenericJDBCProperties/HSQLProperties</prop><!-- override hsql default properties (found under jdbc.properties) --><prop key="userName">sa</prop><prop key="password"></prop><prop key="connectionUrl">jdbc:hsqldb:hsql://localhost:9001</prop></props></os-core:properties></os-core:space>
<bean id="space" class="org.openspaces.core.space.UrlSpaceFactoryBean"><property name="url" value="/./space" /><property name="schema" value="persistent" /><property name="properties"><props><!-- Properties that control the persistent schema --><prop key="space-config.persistent.StorageAdapterClass">
com.j_spaces.sadapter.GenericJDBC.JDBCStorageAdapter
</prop><prop key="space-config.persistent.StorageAdapterURL">/GenericJDBCProperties/HSQLProperties</prop><!-- override hsql default properties (found under jdbc.properties) --><prop key="userName">sa</prop><prop key="password"></prop><prop key="connectionUrl">jdbc:hsqldb:hsql://localhost:9001</prop></props></property></bean>
GigaSpaces 6.0 Documentation Contents (Current Page in Bold)