BEA Logo BEA WebLogic Commerce Server Release Beta

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WebLogic Commerce Server Doc Home   |   Personalization Tour   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Working with Content

 

This chapter describes how content is loaded into the database.

The topic includes the following sections:

 


Adding Content

Now that we have set up a user profile and a property set to extend the example portal, we need to add some content. We will use the BulkLoader, a command-line utility that ships with WebLogic Personalization Server, to load metadata into the reference implementation database. When building your own sites, you might use another document management system (DMS) such as Interwoven's TeamSite or Documentum, but the BulkLoader will meet our needs for this tour.

For this tour, the content has already been installed in the correct directories. Take a moment to review the directory structure now, to gain an understanding of how to set up your own content with a document management system. These files are in the <install-dir>\dmsBase directory.

Follow these steps to add content to the example portal:

  1. Make sure the relevant content for the promotion resides in the correct directory path.

  2. Check the metadata in the content.

  3. Run the BulkLoader to load the content's metadata into the reference implementation database.

Ensuring Content Is Available

Before indexing the new content and loading metadata into the reference implementation database, you first need to ensure that the files reside in the correct directory. Check that the following files reside in the <install-dir>\dmsBase directory:

These files contain the content we will use later in the tour.

Check the Metadata in the Content

After ensuring the content you need for the promotion resides in the correct directories, you need to check the metadata that describes the content. The BulkLoader uses this metadata to index content in the database, and then the Rules Engine matches the indexed content to user profiles at runtime.

For this tutorial, you should examine the metadata in the HTML files that we are using to extend the example portal. Examining the metadata in the files will help you understand how the Rules Engine matches content to users.

To examine the metadata in the content source files:

  1. Use a text or HTML editor to open a few of the *.htm files listed in Ensuring Content Is Available.

  2. Examine the <meta> tags inserted into the file. The <meta> tags include name and content attributes that constitute the name/value pairs that the BulkLoader uses to index content. We will see these content names later when we create the rules that select which content to match to users.

  3. Close the files without saving any changes.

Indexing Content with the BulkLoader

You have examined the content's metadata. We will now index the metadata using the BulkLoader command-line utility.

Note: The following procedure works around a limitation of the evaluation Cloudscape database that ships with WebLogic Personalization Server. If you use are using the BulkLoader with Oracle, you can just run the loaddocs.bat or loaddocs.sh file.

Follow these steps to run the BulkLoader:

  1. The evaluation version of Cloudscape that ships with WebLogic Personalization Server only allows one application to access it at time. Therefore, you must stop WebLogic Server before running the BulkLoader.

  2. Run loaddocs.bat (Windows in bin/win32) or loaddocs.sh (UNIX in bin/solaris2).

  3. When the BulkLoader finishes indexing the content, restart WebLogic Server.

    Note: See Content Management documentation for more BulkLoader instructions.

The BulkLoader indexes metadata for content that resides in the dmsBase directory and subdirectories. In our example, this includes all files that reside in the <install-dir>\dmsBase directory and its subdirectories.

In the next section, Working with Rules, we will create the rules that match personalized content with example portal users.