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.xmlfile 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
Connectionproperty group. - Inside the
Securitytag, provide the connection-related properties in theConnection-Securityproperty group. - Inside the
classtag, provide the class name implementation of theBaseStoreProviderclass. - Inside the
schema-generationtag, provide class name of implementation of theStoreDeploymentclass.
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.xmlfile as a JAR file. Place thestore.xmlfile 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/tpclfolder or add their classpaths to thebe-engine.trafile atBE_HOME/binEnsure that you do not add the dependencies that are already present in theBE_HOME/libfolder or your "Uber JAR" that you have created for the custom store.