Versions Compared

Key

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

...

Please see What is a Lightweight Component for a good explanation of the different types of JBI components.

There As explained in "What is a Lightweight Component" there are two main use cases for ServiceMix:
1. As a ull full JBI container - using SMX as a full JBI container in which you can deploy Service Assemblies and standard JBI components. And you may also deploy lightweight components in this mode - they must be deployed to the servicemix-lwcontainer.

2. Embedded - this is a static servicemix.xml file configuration used mainly for testing or perhaps for encapsulating ServiceMix into a web application. In other words, you will not be able to This uses the servicemix.xml file to configure components thare are only deployed when ServiceMix is started, not at runtime. You cannot deploy service units onto to this type of ServiceMix configuration at runtime. You would have to shutdown, reconfigure and then restart.

...

First some background. A JBI component is either a service engine (SE) or a binding component (BC). These terms are defined in Introduction to ESB and/or the Glossary. A BC/SE is installed on ServiceMix by copying it into the install directory which resides under the ServiceMix home directory. So what gets deployed? JBI components can act as containers themselves. Artifacts can be deployed to an existing BC or SE to add more functionality to that component. Adding artifacts to installed components is called deployment. To deploy artifacts to a component the artifacts can be placed in the deploy directory under the ServiceMix home directory. Another term that is important to know is service assembly. A service assembly is a collection of deployment artifacts and metadata. A service unit is a single deployment artifact which is deployed on a single component. For deployment to happen, the artifacts must be in a very specific format, which is specified in the JSR 208 specification. Please see chapter 6 of the JSR 208 specification for more details. In addition to deploying components, ServiceMix allows servicemix.xml files to be deployed in a similar method to deploying a component. ]

Manually Creating a Service Unit and Service Assembly

...