Offline Model Loading
A client can upload offline catalogs to the Catalog Service. Based on catalogPublishMode, it uploads the model via either EMS or REST API. It can publish catalogs in parallel. As per your environment, provide an appropriate value of workerThreadCount
. If a file has multiple catalogs, for example <ProductModels>
has multiple <ProductModel>
, each catalog would be published to the Catalog Service separately.
Setting up Catalog Client
For offline model loading, the user can use the catalog-client, do the following steps:
In the $OM_HOME/samples/catalog-client/config/application.propertis
file, set the properties mentioned in the following table.
General Configuration Properties
Property | Description | Default value | Notes |
---|---|---|---|
server.port | The default port on which this service is running | 8082 | |
workerThreadCount | Number of worker threads available to publish catalogs in parallel | 2 | |
default.tenant.id | Default Tenant ID | TIBCO | |
enableSecureAPI | Whether enableSecureAPI is true for Catalog Service | True | |
catalogPublishMode | Channel on which offline models would be published | JMS | Allowed values are JMS and REST |
catalogServiceEndpoint | Base URL of Catalog Service | http://<host_name>:9092 | Used to make REST call when catalogPublishMode is selected as REST |
catalogServiceTrustStoreFileName | File name of the catalog service trust store | ||
catalogServiceTrustStorePassword | Password of the catalog service trust store | ||
catalogServiceTrustStoreType | Type of the catalog service trust store |
Authorization Properties
Property | Description | Default value | Notes |
---|---|---|---|
authorization.service.username | Username to generate OAuth Token | admin | |
authorization.service.password | User password to generate OAuth Token | ENC(T9aNk07NMsU=) | Encrypted value of admin. Use EncryptorDecryptorUtil to encrypt the key |
authorizationServiceTokenEndPoint | Authorization Server OAuth URL | http://<host_name>:9091 | |
authServiceTrustStoreFileName | File name of the authorization service trust store | ||
authServiceTrustStorePassword | Password of the authorization service trust store | ||
authServiceTrustStoreType | Type of the authorization service trust store | ||
authorization.access.token.validity | 43200 |
JMS Configurations
Property | Description | Default Value | Notes |
---|---|---|---|
emsServerURL | EMS Server URL | tcp://localhost:7222 | |
emsServerUsername | EMS Server username | Admin | |
emsServerPassword | EMS Server Password | ENC(T9aNk07NMsU=) | Encrypted value of admin. Use EncryptorDecryptorUtil to encrypt the key |
timeoutMillis | EMS message acknowledge timeout | 10000 | |
securityProtocol | Security protocol to use in Tibjms JNDI lookups | ||
sslEnableVerifyHost | Enable TrustStore verification using SSL | ||
productModelPublishQueue | Product Model publishes Queue | tibco.aff.catalog.product.request.single | |
planFragmentPublishQueue | Plan fragment Model publishes Queue | tibco.aff.catalog.planfragment.request.single | |
actionModelPublishQueue | Action Model publishes Queue | tibco.aff.catalog.action.request.single | |
priceModelPublishQueue | Price Model Publish Queue | tibco.aff.catalog.price.request.single | |
discountModelPublishQueue | Discount Model Publish Queue | tibco.aff.catalog.discount.request.single | |
categoryModelsPublishQueue | Category Models Publish Queue | tibco.aff.catalog.category.request | |
ruleModelsPublishQueue | Rule Models Publish Queue | tibco.aff.catalog.operulemodel.request |