...
While you will learn in the remainder of this guide how to create and package a JBI application, we will just use the pre-built packaging for now.
Note: As of ServiceMix 3.2.1, this step is done automatically when starting ServiceMix.
Note: This requires ServiceMix 3.0 and does not work with 3.0M2 or prior.
Open another command line console in the <servicemix_home> directory and run the following commands in Windows
Code Block |
---|
copy components\servicemix-shared-*.zip install
copy components\servicemix-http-*.zip install
copy components\servicemix-jsr181-*.zip install
copy examples\wsdl-first\wsdl-first-sa-*.zip deploy
|
respectively Linux:
Code Block |
---|
cp components/servicemix-shared-*.zip install
cp components/servicemix-http-*.zip install
cp components/servicemix-jsr181-*.zip install
cp examples/wsdl-first/wsdl-first-sa-*.zip deploy
|
These commands will:
- install the servicemix-shared Shared Library
- install the servicemix-http and servicemix-jsr181 JBI componentsdeploy a JBI Service Assembly which exposes a service over HTTP/SOAP
Warning | ||
---|---|---|
| ||
ServiceMix |
...
No Format | ||
---|---|---|
| ||
INFO - AutoDeploymentService - Directory: install: Archive changed: processing servicemix-shared-3.0-incubating-installer.zip ...
INFO - AutoDeploymentService - Directory: install: Finished installation of archive: servicemix-shared-3.0-incubating-installer.zip
INFO - AutoDeploymentService - Directory: install: Archive changed: processing servicemix-http-3.0-incubating-installer.zip ...
INFO - jetty - Logging to org.apache.servicemix.http.jetty.JCLLogger@12ef4c6 via org.apache.servicemix.http.jetty.JCLLogger
INFO - ComponentMBeanImpl - Starting component: servicemix-http
INFO - ComponentMBeanImpl - Initializing component: servicemix-http
INFO - AutoDeploymentService - Directory: install: Finished installation of archive: servicemix-http-3.0-incubating-installer.zip
INFO - AutoDeploymentService - Directory: install: Archive changed: processing servicemix-jsr181-3.0-incubating-installer.zip ...
INFO - ComponentMBeanImpl - Starting component: servicemix-jsr181
INFO - ComponentMBeanImpl - Initializing component: servicemix-jsr181
INFO - AutoDeploymentService - Directory: install: Finished installation of archive: servicemix-jsr181-3.0-incubating-installer.zip
|
Now deploy a JBI Service Assembly which exposes a service over HTTP/SOAP
Note: as of ServiceMix 3.2.1, the deploy directory has been replaced by hotdeploy. Modify the commands accordingly.
Windows:
Code Block |
---|
copy examples\wsdl-first\wsdl-first-sa-*.zip deploy
|
Linux:
Code Block |
---|
cp examples/wsdl-first/wsdl-first-sa-*.zip deploy
|
You should see the following on the command line console:
No Format | ||
---|---|---|
| ||
INFO - AutoDeploymentService - Directory: deploy: Archive changed: processing wsdl-first-sa-3.0-incubating.zip ... 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.0rc4 INFO - jetty - Started SelectChannelConnector @ localhost:8192 INFO - AutoDeploymentService - Directory: deploy: Finished installation of archive: wsdl-first-sa-3.0-incubating.zip |
...