Creating a Custom Store
You can use the custom store API to create a custom store according to the requirement of your project.
For more information about the classes, see
To refer to the reference implementations of Redis as a persistent store by using the custom store API's, see reference implementations on GitHub.
java.property.jdbcdeploy.bootstrap.keyword.file
in the be-engine.tra
file at BE_HOME/bin
- Procedure
-
Create an XML file and save it with the name as
store.xml
. -
Configure the
store.xml
file for the custom store and add the properties that you want to display in TIBCO BusinessEvents Studio as follows:- Provide the connection-related properties in the
Connection
property group. - Inside the
Security
tag, provide the connection-related properties in theConnection-Security
property group. - Inside the
class
tag, provide the class name implementation of theBaseStoreProvider
class. - Inside the
schema-generation
tag, provide class name of implementation of theStoreDeployment
class.
For more information, see Structure of the store.xml File.
- Provide the connection-related properties in the
-
Create all the required Java class files by using the Java API for custom store.
-
Archive all the Java class files for the custom store along with the
store.xml
file as a JAR file. Place thestore.xml
file at the base of the JAR file.Ensure that the JAR is an "Uber JAR" which includes all the dependencies. For more details, see the reference implementations on GitHub.
- Save this JAR file to
BE_HOME/lib/ext/tpcl/contrib
. - Restart TIBCO BusinessEvents Studio.
- (Optional) If your custom store implementation has any external dependencies, add their respective JAR files to the
BE_HOME/lib/ext/tpcl
folder or add their classpaths to thebe-engine.tra
file atBE_HOME/bin
Ensure that you do not add the dependencies that are already present in theBE_HOME/lib
folder or your "Uber JAR" that you have created for the custom store.