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.cdd resource and select Refactor > Rename. In the New Name field, type fdstore and click Preview. You can preview the effect of this change, then click OK.
- Open the newly renamed fdstore CDD file in the resource editor.
-
Click the Cluster tabGeneral section on the left. Change the cluster name from
fdcache to
fdstore.
Note:
- Cluster Clashes
- If 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 Cluster tab > Object Management > Backing Store
-
Select
Cluster
> Object Management
> Backing Store
> Connection 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
Domain Objects
> Default 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.
Note: Projects migrated from versions earlier than TIBCO BusinessEvents 5.0.0 have domain object override entries for all entity types by default. This is because entity metadata properties were configured in entity resources in earlier versions, and they are now configured as CDD domain object override entries You can delete these entries if they are not needed. - 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 checked.
- Save the CDD file.
-
In TIBCO BusinessEvents Studio Explorer, highlight the project name, then from the top menus select
Project
> Build Enterprise Archive.
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.