You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This page how to install your first service assembly

Service assemblies

In order to deploy an application to a JBI container, it is packaged as a service assembly, much like a JAVA web application is packaged in a WAR file. In the next tutorial, we'll go into more detail on how to create your own service assemblies. For now, we are going to look at an out-of-box example service assembly, deploy it and access the services that are being defined.

Deploying a service assembly

The directory <servicemix_home>/deploy is the hot-deploy directory for service assemblies. If you copy a valid service assembly into this directory, it will be deployed on the JBI container automatically. You can find the example service assembly in <servicemix_home>/examples/wsdl-first/wsdl-first-sa-<version>.zip (where <version> matches the ServiceMix version you're using). If you copy this file into the <servicemix_home>/deploy directory, ServiceMix starts the deployment process. Upon completion of deployment, your console output should show these messages:

INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: wsdl-first-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit: wsdl-first-jsr181-su
INFO  - ServiceUnitLifeCycle           - Initializing service unit: wsdl-first-http-su
INFO  - ServiceUnitLifeCycle           - Starting service unit: wsdl-first-jsr181-su
INFO  - ServiceUnitLifeCycle           - Starting service unit: wsdl-first-http-su
INFO  - jetty                          - jetty-6.0.1
INFO  - jetty                          - Started SelectChannelConnector @ 0.0.0.0:8192
INFO  - AutoDeploymentService          - Directory: deploy: Finished installation of archive:  wsdl-first-sa-3.2-incubating-SNAPSHOT.zip
  • No labels