Skip Headers
Oracle® Application Server Personalization Programmer's Guide
10g Release 2 (10.1.2)
B14051-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

9 REProxyBatch API Examples and Usage

This chapter provides examples of REProxyBatch API use. In some instances, we provide coding skeletons; in others, we describe an approach for solving certain kinds of problems using OracleAS Personalization.

9.1 REProxyBatch API Basic Usage

The REBatchProxy methods described in Chapter 8 permit you to write Java programs that generate recommendations.


Note:

The RE Batch API classes are installed on the system where Oracle Application Server is installed. The tables that they use are installed on a different system (the system where Oracle9i is installed.) The following steps must be performed on the correct system.

To use REProxyBatch API calls, you must perform the following steps:

  1. Create and deploy a package to the RE that you will use for recommendations.

  2. Create an instance of REBatchProxy.

  3. Create any required tables. (Alternatively, you can create the tables using SQL before you execute the program.)

  4. Load customer profiles.

  5. Execute the desired recommendation methods.

  6. Purge the customer profiles that you loaded in step 4.

  7. Destroy the database connection that you created in step 2.

You will now have a table containing the recommendations that you requested. You can use SQL to examine the table.

Refer to Appendix B, "REProxyBatch Sample Program" for code samples on how to obtain recommend top and cross-sell recommendations.

9.2 Recommendation Engine Usage

REBatchProxy requires at least one recommendation engine (RE) in at least one recommendation engine farm.

We recommend that the REs used for bulk recommendations not be used for any other purpose.


Note:

If you try to deploy a package an RE while a batch program is running, the deployment will fail.

In general, you may want to use more than one RE to get satisfactory recommendation performance. Most applications will use multiple REs on different machines and subsequently different database instances.

Typically, for a given application, these REs will belong to the same RE farm. If a physical system has multiple processors, and the processors can be leveraged effectively by the database, the number of REs required for a given number of users can be reduced, perhaps even to one. See the administrator's guide for more information.

If your application has more than one RE available for use, it must determine which one to use. You can load different sets of customer profiles into different REs, generate appropriate recommendations, and them merge the recommendation tables, if desired.