Now it is time to practice the things you have learned
Introducing the protocol bridge example
The protocol bridge example that is included with the distribution is a service assembly that:
- receives an HTTP request
- transforms the message using XSL-T
- and sends it to a JMS queue
Exercise
Deploy the service assembly
The service assembly for this application is available in the distribution as <servicemix_home>/examples/bridge/bridge-sa-<version>.zip. Just deploy this service assembly on ServiceMix now (If you don't remember how to deploy a service assembly, take a look at 1.3. Tutorial - Running the wsdl-first example).
However, the console output
Components
This example requires additional features from the ESB, so you will need to install these additional JBI components:
- servicemix-jms will allow ServiceMix to send and receive JMS message
- servicemix-saxon provides support for XSL-T and XQuery
- servicemix-eip provides support for some Enterprise Integration Patterns
Go ahead and install these components now. Refer back to 1.2. Tutorial - About components if necessary. If all goes well, your console should show this output
INFO - AutoDeploymentService - Directory: install: Archive changed: processing servicemix-jms-3.2-incubating-SNAPSHOT-installer.zip ... INFO - ComponentMBeanImpl - Starting component: servicemix-jms INFO - ComponentMBeanImpl - Initializing component: servicemix-jms INFO - AutoDeploymentService - Directory: install: Finished installation of archive: servicemix-jms-3.2-incubating-SNAPSHOT-installer.zip INFO - AutoDeploymentService - Directory: install: Archive changed: processing servicemix-eip-3.2-incubating-SNAPSHOT-installer.zip ... INFO - ComponentMBeanImpl - Starting component: servicemix-eip INFO - ComponentMBeanImpl - Initializing component: servicemix-eip INFO - AutoDeploymentService - Directory: install: Finished installation of archive: servicemix-eip-3.2-incubating-SNAPSHOT-installer.zip INFO - AutoDeploymentService - Directory: install: Archive changed: processing servicemix-saxon-3.2-incubating-SNAPSHOT-installer.zip ... INFO - ComponentMBeanImpl - Starting component: servicemix-saxon INFO - ComponentMBeanImpl - Initializing component: servicemix-saxon INFO - AutoDeploymentService - Directory: install: Finished installation of archive: servicemix-saxon-3.2-incubating-SNAPSHOT-installer.zip
Service assembly
Now that all required components have been installed on the JBI container, you can deploy the
Further reading
- http://www.enterpriseintegrationpatterns.com describes all the Enterprise Integration Patterns
- On servicemix-eip you can find an overview of the EIPs that are supported in ServiceMix.