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
- Enable Dynamic Cache from the WebSphere Application Server administrative console.
- Log in to the WebSphere Application Server administrative console.
- Click .
- Click server1.
- Click .
- Select Enable disk offload. Optionally, you can specify the Disk Offload location on your
file system.
- Select Flush to disk.
- Click Apply to apply your changes
and OK to exit.
- Restart WebSphere Application Server.
- Create an Object cache instance.
- Log in to the WebSphere Application Server administrative console.
- Select .
- For the scope, select Node=PremiseNode, Server=server1.
Note: If installing on a cluster, select that cluster as the
scope.
- Click New.
- Enter the following:
- Name: NDCList
- JNDI Name: services/cache/NDCList
- Cache size: 2000
- Default priority: 1
- Select Dependency ID support.
- Click Apply to apply your changes
and OK to exit.
- Restart WebSphere Application Server.