Maven Petals Plug-in 2.4.0-SNAPSHOT

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View Page History
{code}

h4. Use-case 3 : How to install the same component in two different versions on the same container
h4. Use-case 3 : How to configure a service unit to use an interceptor

An interceptor must be configured to be executed on needed phases: {{accept}}, {{accept-response}}, {{send}} and {{send-response}} associated to the message exchanges.

Such a configuration can be updated directly from the service assembly containing service units without to restart a development cycle. Just use the goal 'jbi-configure' as following:
{code}
mvn org.ow2.petals:maven-petals-plugin:2.4.0:jbi-configure -DgroupId=org.ow2.petals.samples -DartifactId=interceptor-sa -Dversion=1.0.0 -DserviceInterceptorCustomizationFileURL=file:///home/myuser/service-interceptors-customization.properties -DserviceInterceptionConfigurationName=productionConfiguration
{code}
where:
* {{org.ow2.petals.samples:interceptor-sa:1.0.0}} is the service assembly containing service units to configure,
* {{serviceInterceptorCustomizationFileURL}} specifies a file containing the configurations of interceptors to apply,
* {{serviceInterceptionConfigurationName}} defines the interceptor configuration to apply

The service interceptor customization file contains something like that:
{code}
productionConfiguration\:provider\:*\:*\:*\:accept\:1 = MyCustomInterceptorName:paramName1:paramValue1:paramName2:paramValue2
productionConfiguration\:provider\:*\:*\:*\:accept-response\:1 = MyCustomInterceptorName:paramName1:paramValue1:paramName2:paramValue2

devConfiguration\:provider\:*\:*\:*\:accept\:1 = MyCustomInterceptorName:paramName1:paramValue1:paramName2:paramValue2
devConfiguration\:provider\:*\:*\:*\:accept\:2 = MyCustomInterceptorName:paramName1:paramValue1
devConfiguration\:provider\:*\:*\:*\:accept-response\:1 = MyCustomInterceptorName:paramName1:paramValue1
devConfiguration\:provider\:*\:*\:*\:accept-response\:2 = MyCustomInterceptorName:paramName1:paramValue1
{code}

h4. Use-case 4 : How to install the same component in two different versions on the same container

For example, we wish, on the same JBI container:
* to use the BC Soap version 3.1.4 to connect old service assemblies,