Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

We are now going to excerptINLINE

use the Maven JBI plugin to deploy the service assembly

Deploy the SA

Using hotdeploy

Navigate into your project's SA directory and create the SA zip file.

...

...

The SA zip file is present in the target directory. To deploy the SA, simply copy the zip file into the SERVICEMIX_HOME/hotdeploy directory.

...

Now, navigate to your project's SA directory and use the JBI Maven plugin to deploy your project.

...

Upon successful deployment, we get this output:

...

...

What happens here? First of all, the Maven plugin will analyze your service assembly to determine what needs to be done. In this case, it determines that the service assembly we created requires the servicemix-file JBI component, which requires the standard ServiceMix shared library. This is shown in the output from the command:

...

Next, the process connects to the running ServiceMix instance to determine what has already been installed/deployed. In the example below, the servicemix-file JBI component and the servicemix-shared shared library were already installed, but the service assembly still needs to be deployed. If you run the same command on a freshly installed ServiceMix instance, all dependencies will get installed/deployed automatically.

...

...

Test the service assembly

...

  • You can run the mvn install command to create the SA zip file and deploy it by copying the zip file into the SERVICEMIX_HOME/hotdeploy directory
  • You can run the mvn jbi:projectDeploy command from the SA directory in your project
  • Make sure you have ServiceMix running on the same machine before runnning this command
  • The command will not only deploy the service assembly, but also install any dependencies automatically

...



...