Renaming and Configuring the CDD and Building the EAR
Begin by renaming the CDD from the Cache OM Tutorial, and add a few configuration details for backing store functionality: click a checkbox to enable backing store functionality, and select the JDBC Connection resource you want to use. Of course, more options are available for different needs.
- Procedure
- In TIBCO BusinessEvents Studio Explorer, right-click the
fdcache.cddresource and select . In the New Name field, typefdstoreand click Preview. You can preview the effect of this change, then click OK. - Open the newly renamed
fdstoreCDD file in the resource editor. - Click the Cluster tab and select the General section on the left. Change the cluster name from
fdcachetofdstore.Note:Cluster ClashesIf you have clashes with other clusters running on your machine, use a different cluster name, discovery URL and listen URL from the other cluster or clusters. See Cache OM Tutorial > Adding and Configuring a CDD for details. - Select
- Select Persistence Option Store.
- Select Store Type Oracle (or as needed for your DBMS).
- Select
on the left and in the URI field, select the JDBC Connection shared resource you configured for the backing store (see
Adding a JDBC Connection Shared Resource).
You can optionally check that the rest of the CDD configuration is correct. Refer to Adding and Configuring a CDD.
- Select
on the left.
The Domain Objects area is where you configure how objects are managed. You can set defaults, and you can override them for specific entities.
On the right, ensure that Mode is set toCache Only(the default for the Cache OM CDD template).Check the Preload Entities and Preload Handles checkboxes.Preloading is not necessary for the tutorial to function, but it is a commonly used feature. See section introduction for more details.
- If there are override entries, check each entry in turn, and make sure that the Mode is set to
Cache Only, and that the Has Backing Store checkbox is selected. - Save the CDD file.
- In TIBCO BusinessEvents Studio Explorer, highlight the project name, then from the top menus select
.
If you see a message asking you to save all project resources, click Yes. It means an unsaved resource editor is open.
- Change the Name to
FraudDetectionStore - In the File Location setting, specify a location from which you can access the EAR when you run the database setup utility and when you start the engine.
- At the end of the location string, change the file name to
fdstore.ear. The FraudDetectionStore example ships with this value: BE_HOME/examples/standard/FraudDetectionStore/fdstore.ear.If you need a refresher on building the EAR file, see Building the EAR File.
- Change the Name to
Now you are ready to run the scripts that prepare the backing store’s database schema.