Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bridge\
  pom.xml
  bridge-http-su\
    ...
  bridge-eip-su\
    ...
  bridge-xslt-su\
    ...
  bridge-jms-su\
    ...
  bridge-sa\
    ...

Creating the

...

Service Units

In the bridge directory, run the following commands (remove tailing backslashes and make each command on one line) to create the JBI service units (SUs):

Code Block
mvn archetype:create \
        -DarchetypeGroupId=org.apache.servicemix.tooling \
        -DarchetypeArtifactId=servicemix-http-consumer-service-unit \
        -DarchetypeVersion=3.1-incubating \
        -DgroupId=org.apache.servicemix.samples.bridge \
        -DartifactId=bridge-http-su \
        -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository

mvn archetype:create \
        -DarchetypeGroupId=org.apache.servicemix.tooling \
        -DarchetypeArtifactId=servicemix-jms-provider-service-unit \
        -DarchetypeVersion=3.1-incubating \
        -DgroupId=org.apache.servicemix.samples.bridge \
        -DartifactId=bridge-jms-su \
        -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository

mvn archetype:create \
        -DarchetypeGroupId=org.apache.servicemix.tooling \
        -DarchetypeArtifactId=servicemix-eip-service-unit \
        -DarchetypeVersion=3.1-incubating \
        -DgroupId=org.apache.servicemix.samples.bridge \
        -DartifactId=bridge-eip-su \
        -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository

mvn archetype:create \
        -DarchetypeGroupId=org.apache.servicemix.tooling \
        -DarchetypeArtifactId=servicemix-saxon-xslt-service-unit \
        -DarchetypeVersion=3.1-incubating \
        -DgroupId=org.apache.servicemix.samples.bridge \
        -DartifactId=bridge-xslt-su \
        -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository

mvn archetype:create \
        -DarchetypeGroupId=org.apache.servicemix.tooling \
        -DarchetypeArtifactId=servicemix-service-assembly \
        -DarchetypeVersion=3.1-incubating \
        -DgroupId=org.apache.servicemix.samples.bridge \
        -DartifactId=bridge-sa \
        -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository

...

Configure the Service Assembly

We want the JBI Service Assembly to include the 4 SUs that we just created.
So let's edit the bridge-sa pom we created and add the <dependencies> which is a child of <project>:

...