Import of Existing Projects into Your Workspace

It is recommended that you complete the tutorials yourself, because "learning by doing" is the most effective way to become proficient.

If completing the tutorials is not possible, however, you can read the tutorials and refer to the fully configured example projects, provided here:

BE_HOME/examples/standard/FraudDetection

BE_HOME/examples/standard/FraudDetectionCache

BE_HOME/examples/standard/FraudDetectionStore

Dependency of Interactive Readme File on a Higher Level Directory

The readme.html file uses resources in the BE_HOME/examples/_resources directory to enable you to send messages to the deployed example project using an HTTP channel. Therefore you must maintain the relative positions of these two directories.

Dependency between Readme File and Project — Port Number

Each example project uses a different port for the HTTP channel, so you can run more than one example at a time on your machine. The readme file interacts with the channel on the specified port at runtime. FraudDetection uses port 8108, FraudDetectionCache uses port 8109 and FraudDetectionStore uses 8209.

If you change the example project’s port (in the HTTP Connection resource), make sure you change the port in the readme.html too. Open the readme.html in an editor and edit this line (showing the FraudDetection project port as an example):

SendEventForm.setServer("http://localhost:8108");

Copy Example Directory Trees before Importing

Because of this dependency between the readme.html file and the _resources directory (and also because it is good practice to work in copies of the shipped examples), it is recommended that you make a copy of the directory tree for any example you want to work with.

For example, copy BE_HOME/examples/standard/FraudDetection, and paste it as a peer of the provided example, renaming the FraudDetection directory, for example, to FraudDetection2. As an alternative you can copy the entire BE_HOME/examples directories and then work with the copied set of examples.

In either case, you can use the readme.html file to test the deployed project.

At deploy time the only files that are used are the configured EAR and CDD files. When you construct a command to start an engine, these files must be available.