ActiveSpaces Store - learn-tibco-cep/tutorials GitHub Wiki

TIBCO ActiveSpaces can also be used directly as a persistent data store without an Apache Ignite cluster. All ActiveSpaces configurations are the same as that described by the backing store setup.

As shown in BooksAS4store.cdd, this configuration does not use an Ignite cache, but it selects ActiveSpaces as the persistent store provider, and specifies the data-grid connection properties in the CDD.

Object Management

In the CDD, concepts that require persistence are configured to use Store Only mode, and so all instances will be automatically saved to the data grid.

Database Schema

Database schema can be created and applied using exactly the same steps as that described in the backing store setup.

ActiveSpaces Data Grid

ActiveSpaces can be installed and managed by the same steps as that described in the backing store setup.

Configure ActiveSpaces Connection

The ActiveSpaces connection properties in this tutorial can be configured in BooksAS4store.cdd. You can edit the CDD file to set the following variables.

Property Name Value
tibco.clientVar.ASDG/realmurl http://ashostname:8181
tibco.clientVar.ASDG/grid perf-grid
tibco.clientVar.ASDG/tibdg_timeout 30

Besides, some query operations in this configuration use different API calls that are not used by other configurations with Ignite cache, and so we use the following property to indicate the differences.

books.app.storeOM = true

Start Inference Nodes

In this configuration, the application runs only inference engines, which can be started as follows.

$BE_HOME/bin/be-engine --propFile $BE_HOME/bin/be-engine.tra -n default-0 -u default -c BooksAS4store.cdd Books.ear