Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Cache OM Tutorial : Deploy the Inference and Cache Agents and Send Events

Deploy the Inference and Cache Agents and Send Events
Learning Points
Start cache agents first  In a production environment, you would set the Cache Agent Quorum setting in the Object Management Configuration panel to ensure that enough cache agents start before other types of agents can begin processing. In general, at startup, you start cache agents then other types of agents. At system shutdown, you stop other kinds of agents, then stop cache agents.
More Information
See Engine Startup and Shutdown Sequence in TIBCO BusinessEvents Administration.
Task D Start the TIBCO BusinessEvents Agents and Send Events
You can simply open the example readme.html file and follow instructions there. In order to send events into the engines, you must enter information into the forms provided in the readme. Navigate to BE_HOME/examples/standard/FraudDetectionCache and open readme.html in your browser. Follow the instructions in the readme file to start two engines and send events to the inference agent.
See Dependency of Interactive Readme File on a Higher Level Directory to understand the requirements for using the interactive readme file.
1.

 
cd BE_HOME/examples/standard/FraudDetectionCache
BE_HOME/bin/be-engine --propFile BE_HOME\bin\be-engine.tra -u cache -c FraudDetectionCache/fdcache.cdd fdcache.ear

 
For example, if you are simply running the provided example, you would use this command line to start the cache agent:
c:/tibco/be/5.1/bin/be-engine --propFile c:/tibco/be/5.1/bin/be-engine.tra -u cache -c FraudDetectionCache/fdcache.cdd fdcache.ear
2.

 
cd BE_HOME/examples/standard/FraudDetectionCache
BE_HOME/bin/be-engine --propFile BE_HOME\bin\be-engine.tra -u default -c FraudDetectionCache/fdcache.cdd fdcache.ear

 
For example, if you are simply running the provided example, you would use this command line:
c:/tibco/be/5.1/bin/be-engine --propFile c:/tibco/be/5.1/bin/be-engine.tra -u default -c FraudDetectionCache/fdcache.cdd fdcache.ear
Optional Activity
Start a second cache agent. Experiment with stopping one cache agent engine then restarting it again, to see how one cache agent can operate successfully. Because one backup copy of the data is kept, and there are two cache agents, each cache agent has the complete cache contents. In a production system with more cache agents no single cache agent has all the cache data.
Congratulations — You have completed the caching tutorial!
You can now continue to Chapter 4, Backing Store Tutorial or to Chapter 5, TIBCO BusinessEvents Monitoring and Management Tutorial. Now you have configured a cache, you can complete these remaining tutorials in any order.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved