Apache ServiceMix NMR #usernavbar() #printableicon() #feedicon()  
When you contribute content to this Wiki, you grant a license to the ASF for inclusion in ASF works (as per the Apache Software License).
  4. Installing the NMR in Equinox

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

Compare with Current View Page History

« Previous Version 18 Next »

4. Installing the NMR in Equinox

This page is outdated and needs to be reworked.
Some work has been done inside the Eclipse Swordfish project ...

Installation

Here are the required steps to install the NMR and JBI layer in Equinox:

  • create a new folder
  • create a subfolder named system and another one named configuration
  • create a file named configuration/config.ini in this folder and paste the contents from config.ini
  • download the equinox framework jar (org.eclipse.osgi_xxx.jar) from here
  • in the system folder, you need to download and put all the files listed in the configuration file. These files are available from Equinox, Orbit, the maven central repo and ServiceMix maven2 repo

The config.ini file can be downloaded from config.ini.
You can find a shell script for unix based OS to set up the whole environment here. If you're on Windows, grab it nonetheless but download all the jars manually using the URLs in this file.

#top

Running Equinox

Run the following command:

java -jar org.eclipse.osgi_3.3.2.R33x_v20080105.jar -console

and the NMR and JBI layer should be started.

Installing a JBI application

In the console, run the following commands:

install jbi:http://repo1.maven.org/maven2/org/apache/servicemix/servicemix-shared-compat/3.2.1/servicemix-shared-compat-3.2.1-installer.zip
install jbi:http://repo1.maven.org/maven2/org/apache/servicemix/servicemix-jsr181/3.2.1/servicemix-jsr181-3.2.1-installer.zip
install jbi:http://repo1.maven.org/maven2/org/apache/servicemix/servicemix-http/3.2.1/servicemix-http-3.2.1-installer.zip
install jbi:http://repo1.maven.org/maven2/org/apache/servicemix/samples/wsdl-first/wsdl-first-sa/3.2.1/wsdl-first-sa-3.2.1.zip

Use the ss command to find the IDs of the four installed bundles and start them:

start xxx

Below is an example of the output of the start command:

osgi> start 27
May 15, 2008 3:10:14 PM org.apache.servicemix.jbi.deployer.impl.Deployer installSharedLibrary
INFO: Deploying bundle 'null (servicemix-shared)' as a JBI shared library

osgi> start 28
May 15, 2008 3:10:18 PM org.apache.servicemix.jbi.deployer.impl.Deployer installComponent
INFO: Deploying bundle 'null (servicemix-jsr181)' as a JBI component
May 15, 2008 3:10:22 PM org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl doRegister
INFO: JBI component registered with properties: {NAME=servicemix-jsr181, TYPE=service-engine, objectClass=[Ljava.lang.String;@5b2fd8, service.id=37}
log4j:WARN No appenders could be found for logger (org.apache.servicemix.jsr181.Jsr181Component).
log4j:WARN Please initialize the log4j system properly.

osgi> start 29
May 15, 2008 3:10:26 PM org.apache.servicemix.jbi.deployer.impl.Deployer installComponent
INFO: Deploying bundle 'null (servicemix-http)' as a JBI component
May 15, 2008 3:10:26 PM org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl doRegister
INFO: JBI component registered with properties: {NAME=servicemix-http, TYPE=binding-component, objectClass=[Ljava.lang.String;@ef33ad, service.id=41}

osgi> start 30
May 15, 2008 3:10:30 PM org.apache.servicemix.jbi.deployer.impl.Deployer deployServiceAssembly
INFO: Deploying bundle 'null (wsdl-first-sa)' as a JBI service assembly

Starting the JBI application

The JBI application has been automatically started, so now, just point your web browser to:

http://localhost:8192/
  • No labels