WebSphere brand IBM WebSphere Premises Server 6.1 Feature Pack for Sensor Event Services

Configuring the Dynamic Cache

The Track and Trace use case uses Dynamic Cache to hold a list of valid National Drug Codes (NDCs) that it has processed. Each time a barcode is scanned by a handheld running the Track and Trace use case application, the barcode is parsed and the NDC is validated against this list. Having the list of NDCs in Dynamic Cache makes the list accessible to all nodes in the cluster.

Before you begin

Copy the file WAS_HOME/profiles/AppSvr01/ndc_list.xml to the location where your WebSphere® Application Server profile is installed. The Track and Trace use case looks in this location for the XML file and copies the contents into Dynamic Cache for access at runtime.

The rest of the steps in this task are completed by the WebSphere Premises Server 6.1 Feature Pack for Sensor Event Services installation program. Perform the steps in this task only if a reconfiguration of the use case is required.

About this task
The Dynamic Cache is populated from a file on the file system that contains the list of valid NDCs. Restarting WebSphere Application Server clears the Dynamic Cache. The Track and Trace use case application looks for entries in the Dynamic Cache; if they are not present, the application populates the Dynamic Cache from the NDC list on the file system. The NDC list file ndc_list.xml is distributed in the Track and Trace EAR file. Valid NDCs can be added to this file. WebSphere Application Server must be restarted to reload Dynamic Cache with that information.
Procedure
  1. Enable Dynamic Cache from the WebSphere Application Server administrative console.
    1. Log in to the WebSphere Application Server administrative console.
    2. Click Application servers.
    3. Click server1.
    4. Click Container Services > Dynamic Cache Service.
    5. Select Enable disk offload. Optionally, you can specify the Disk Offload location on your file system.
    6. Select Flush to disk.
    7. Click Apply to apply your changes and OK to exit.
    8. Restart WebSphere Application Server.
  2. Create an Object cache instance.
    1. Log in to the WebSphere Application Server administrative console.
    2. Select Resources > Cache instances > Object cache instances.
    3. For the scope, select Node=PremiseNode, Server=server1.
      Note: If installing on a cluster, select that cluster as the scope.
    4. Click New.
    5. Enter the following:
      • Name: NDCList
      • JNDI Name: services/cache/NDCList
      • Cache size: 2000
      • Default priority: 1
    6. Select Dependency ID support.
    7. Click Apply to apply your changes and OK to exit.
    8. Restart WebSphere Application Server.

Library | Support | Terms of use

(c) Copyright IBM Corporation 2004, 2008. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.