This page introduces JBI components and shows how to install them in ServiceMix
Components
Before you can start building your own integration application (also known as service assemblies), you need to add support to the JBI container for the types of transports and services you will be building. You can do this by installing additional components on the JBI container. The components come in two flavors:
- Binding Components provide additional transports to the container.
An example: the servicemix-http binding component allows to send messages into the ESB using HTTP
- Service Engines add support for another type of business logic to the container.
An example: the servicemix-saxon service engine allows you to easily build applications that do XSL-T transformations
Installing components
| Changes with ServiceMix 3.2
- the hot-deploy directory for components has changed. You can now install components by copying it to the <servicemix_home>/hotdeploy.
- all out-of-the-box components are delivered inside the hot-deploy directory, so they are installed automatically. (you can skip the rest of this page)
|
Out-of-the-box, ServiceMix has a lot of components readily available for you to use. You can find them in <servicemix_home>/components.
In order to install a component, you have to copy it to <servicemix_home>/install (this is the hot-install directory for components: whenever you drop a component installer archive in there, it will be automatically extracted and installed on the container).
For our next example, we want to use:
- servicemix-shared: a shared libary by all ServiceMix JBI components
<servicemix_home>/components/servicemix-shared-<version>-installer.zip
- servicemix-http: binding component to provide the HTTP/SOAP transport
<servicemix_home>/components/servicemix-http-<version>-installer.zip
- servicemix-jsr181: service engine which adds support for building JSR-181 compliant web services within ServiceMix
<servicemix_home>/components/servicemix-jsr181-<version>-installer.zip
Install the required components now. After you have copied all 3 archives into the install directory, your console should look like this.
Congratulations, you now have ServiceMix up and running as a JBI container and you've installed the necessary components to support HTTP transport to a JSR-181 compliant webservice. Next, let us go ahead and use these features for our first example.
Things to remember
- JBI Components (Binding Components and Service Engines) are plug-ins that add features to the JBI Container
- You can install a JBI Component by copying it to <servicemix_home>/install
Further reading
- Components list contains a list of standard JBI Components that are being delivered with ServiceMix, as well as some others that are readily available on the web.