uCosminexus Application Server, Application Setup Guide

[Contents][Index][Back][Next]

9.9.1 Adding a filter

Add a filter to a WAR file with the following procedures:

  1. Create the filter attribute file.
    Create the filter attribute file by using a text editor. Specify the filter name and the class name of the filter in the filter attribute file. When required, specify the name and the value of the initialization parameter.
    For details on the filter property file, see 3.8 Filter property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
  2. Execute the following command to register the filter in the WAR file in a J2EE application:
    Execution format
     
    cjaddapp [server-name] [-nameserver provider-URL] -type filter -name J2EE application-name -warname WAR-display-name-for-adding-the-filter -c path-of-the-filter-attribute-file
     
    Example of execution
    cjaddapp MyServer -type filter -name App1 -warname account-war -c FilterProp.xml
    For details on the cjaddapp command, see cjaddapp (Adding resources) in the uCosminexus Application Server Command Reference Guide.