|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (7)
View Page History{code}
You can enable or disable a interceptor using the configuration file associated to the parameter {{componentInterceptorCustomizationFile}} of the goal jbi-configure. The following configuration will configure the interceptors of the component {{petals-bc-soap}}: The interceptor {{MyCustomInterceptorNameNotActivated}} is disable, the interceptor {{MyCustomInterceptorNameActivated}} is enabled with a dedicated parameter.
{code}
org.ow2.petals\:petals-bc-soap\:1 = foo.bar.MyInterceptor:MyCustomInterceptorNameNotActivated:false
org.ow2.petals\:petals-bc-soap\:2 = foo.bar.My2ndInterceptor:MyCustomInterceptorNameActivated:true:paramName1:paramValue1
{code}
{code}
org.ow2.petals\:petals-bc-soap\:1 = foo.bar.MyInterceptor:MyCustomInterceptorNameNotActivated:false
org.ow2.petals\:petals-bc-soap\:2 = foo.bar.My2ndInterceptor:MyCustomInterceptorNameActivated:true:paramName1:paramValue1
{code}
h4. Use-case 3 : How to install the same component in two different versions on the same container
| downloadAndPackageWsdlResources | boolean | false | jbi-service-unit | If true, imports used in the WSDL of an SU will be resolved and packaged inside the service unit JBI archive. |
| componentInterceptorCustomizationFile | String | component-interceptors-customization.properties | jbi-component | Component interceptor customization file containing customization of interceptors to package into JBI components. All jars embedded into the JBI component are introspected to discover available interceptors, and each interceptor are automaticaly declared in the JBI component.
| componentInterceptorCustomizationFile | String | component-interceptors-customization.properties | jbi-component | Component interceptor customization file containing customization of interceptors to package into JBI components. All jars embedded into the JBI component are introspected to discover available interceptors, and each interceptor are automaticaly declared in the JBI component.
The default interceptor declaration is:
* interceptor name: interceptor class name without package
* activation state: false
* interceptor name: interceptor class name without package
* activation state: false
Each file line contains a key and a value. The value is used as a Maven artifact to identify the interceptor to packaged in JBI components. Use one line per interceptor to declare in a JBI component.
The key is composed of 4 mandatory fields separated by ":" (caution to use the escape character) to identify th JBI component in which interceptors will be packaged, each field (except the fourth) can contain the value "*" to match any value:
* groupId,
* groupId,
* version,
* ordering number: in case of several artifacts completing the classpath elements, this field will define the declaration order of artifact. In case of only one artifact use the value "1".
* ordering number: in case of several artifacts completing the classpath elements, this field will define the declaration order of artifact. In case of only one artifact use the value "1".
The value is composed of 3 mandatory fields following by optional fields separated by ":" customizing the interceptor:
* interceptor class: it's the full class name of the interceptor, used as key to associate the following customization,
* interceptor class: it's the full class name of the interceptor, used as key to associate the following customization,
* activation: {{true}} activates the interceptor at component level,
* interceptor parameters list as: param-name-1:param-value-1:param-name-2:param-value-2:...
* interceptor parameters list as: param-name-1:param-value-1:param-name-2:param-value-2:...
Example, the following declaration rules customize the interceptor configuration with specific interceptor name and activation states:
{code}
{code}
{code} |
| componentInterceptorCustomizationFileURL | URL | \- | jbi-component | Component interceptor customization file (componentInterceptorCustomizationFile). If it does not exist through the classpath, the file is look for according to this URL. |
| componentInterceptorCustomizationFileURL | URL | \- | jbi-component | Component interceptor customization file (componentInterceptorCustomizationFile). If it does not exist through the classpath, the file is look for according to this URL. |
| serviceInterceptorCustomizationFile | String | service-interceptors-customization.properties | jbi-service-unit | Service interceptor customization file containing customization of interceptors to set into service-unit.
Each file line contains a key and a value. The value is used to defined the interceptor configuration to apply on phase identified by the key.
The key is composed of 7 mandatory fields separated by ":" (caution to use the escape character) to identify the phase on which the interception occurs:
* configuration name,
* service unit type: possible values are: {{provider}}, {{consumer}},
* interface name: interface name of the provider or consumer,
* service name: service name of the provider or consumer,
* endpoint name: endpoint name of the provider or consumer,
* phase name: possible values are: {{accept}}, {{accept-response}}, {{send}} and {{send-response}},
* ordering number: in case of several interceptor to define on one phase, this field will define the declaration order of interceptor. In case of only one, use the value "1".
The value is composed of 1 mandatory field following by optional fields separated by ":" customizing the interceptor:
* interceptor name: name of the interceptor defined at component level,
* interceptor parameters list as: {{param-name-1:param-value-1:param-name-2:param-value-2:...}}
Example, the following declaration rules customize the interceptor configuration with specific interceptor name and activation states:
{code}
configNameA\:provider\:*\:*\:*\:accept\:1 = MyCustomInterceptorNameNotActivated:paramName1:paramValue1:paramName2:paramValue2:...
configNameA\:provider\:*\:*\:*\:accept\:2 = MyCustomInterceptorNameActivated:paramName1:paramValue1
configNameA\:provider\:*\:*\:*\:accept-response\:1 = MyCustomInterceptorNameNotActivated:paramName1:paramValue1:paramName2:paramValue2:...
configNameA\:provider\:*\:*\:*\:accept-response\:2 = MyCustomInterceptorNameActivated:paramName1:paramValue1
configNameA\:provider\:*\:*\:*\:send\:1 = ...
configNameA\:provider\:*\:*\:*\:send-response\:1 = ...
{code} |
| serviceInterceptorCustomizationFileURL | URL | \- | jbi-service-unit | Service interceptor customization file (serviceInterceptorCustomizationFile). If it does not exist through the classpath, the file is look for according to this URL. |
| serviceInterceptionConfigurationName | String | \- | jbi-service-unit | Service interceptor configuration name to use to configure interceptors of service units. |
Each file line contains a key and a value. The value is used to defined the interceptor configuration to apply on phase identified by the key.
The key is composed of 7 mandatory fields separated by ":" (caution to use the escape character) to identify the phase on which the interception occurs:
* configuration name,
* service unit type: possible values are: {{provider}}, {{consumer}},
* interface name: interface name of the provider or consumer,
* service name: service name of the provider or consumer,
* endpoint name: endpoint name of the provider or consumer,
* phase name: possible values are: {{accept}}, {{accept-response}}, {{send}} and {{send-response}},
* ordering number: in case of several interceptor to define on one phase, this field will define the declaration order of interceptor. In case of only one, use the value "1".
The value is composed of 1 mandatory field following by optional fields separated by ":" customizing the interceptor:
* interceptor name: name of the interceptor defined at component level,
* interceptor parameters list as: {{param-name-1:param-value-1:param-name-2:param-value-2:...}}
Example, the following declaration rules customize the interceptor configuration with specific interceptor name and activation states:
{code}
configNameA\:provider\:*\:*\:*\:accept\:1 = MyCustomInterceptorNameNotActivated:paramName1:paramValue1:paramName2:paramValue2:...
configNameA\:provider\:*\:*\:*\:accept\:2 = MyCustomInterceptorNameActivated:paramName1:paramValue1
configNameA\:provider\:*\:*\:*\:accept-response\:1 = MyCustomInterceptorNameNotActivated:paramName1:paramValue1:paramName2:paramValue2:...
configNameA\:provider\:*\:*\:*\:accept-response\:2 = MyCustomInterceptorNameActivated:paramName1:paramValue1
configNameA\:provider\:*\:*\:*\:send\:1 = ...
configNameA\:provider\:*\:*\:*\:send-response\:1 = ...
{code} |
| serviceInterceptorCustomizationFileURL | URL | \- | jbi-service-unit | Service interceptor customization file (serviceInterceptorCustomizationFile). If it does not exist through the classpath, the file is look for according to this URL. |
| serviceInterceptionConfigurationName | String | \- | jbi-service-unit | Service interceptor configuration name to use to configure interceptors of service units. |
h2. jbi-install