uCosminexus Application Server, Application Setup Guide
This section describes how to set up an interceptor. If you want to use the interceptor on Cosminexus, specify the default interceptor as an EJB-JAR property.
EJB-JAR attribute file
You execute the following command to acquire the EJB-JAR property file:
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -type ejb -resname display-name-of-EJB-JAR -c path-of-the-hitachi-EJB-JAR-property-file |
cjgetappprop MyServer -name adder -type ejb -resname adder -c C:\home\adder_ejb.xml
You execute the following command to apply the values of the EJB-JAR property file:
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -type ejb -resname display-name-of-EJB-JAR -c path-of-the-hitachi-EJB-JAR-property-file |
cjsetappprop MyServer -name adder -type ejb -resname adder -c C:\home\adder_ejb.xml
The following table describes the settings (<interceptor-binding>) for the default interceptor:
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Explanation | O | <description> |
| EJB name of the default interceptor (specify wildcard) | Y | <ejb-name> |
| Class name of the interceptor class | O | <interceptor-class> |
| Setting an execution order of interceptors (Class name of the interceptor class) | O | <interceptor-order>-<interceptor-class> |
| Setting a call inhibit of the default interceptor | O | <exclude-default-interceptors> |
| Setting a call inhibit of the class level interceptor | O | <exclude-class-interceptors> |
| Business method name of EJB | O | <named-method>-<method-name> |
| Method parameters | O | <named-method>-<method-params>-<method-param> |
For details on the property settings, see 3.3.1 Contents of the EJB-JAR property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
For the method to set interceptors and notes on interceptors, see 2.15 Using interceptors in the uCosminexus Application Server EJB Container Functionality Guide.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.