1. Quick Start has been edited by Guillaume Nodet (Apr 02, 2009).

(View changes)

Content:

1. Quick start

Installing the NMR

  • Install ServiceMix Kernel
  • Inside the Runtime console, launch the following commands:
    features addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features
    features install nmr
    nmr


You should have the following output:

s...@root:/> features/addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features
s...@root:/> features/install nmr

Installing an example

  • Inside the Kernel console, launch the following commands:
    features/addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features
    features/install jbi
    osgi/install -s jbi:mvn:org.apache.servicemix/servicemix-shared/2009.01/zip/installer
    osgi/install -s jbi:mvn:org.apache.servicemix/servicemix-jsr181/2009.01/zip/installer
    osgi/install -s jbi:mvn:org.apache.servicemix/servicemix-http/2009.01/zip/installer
    osgi/install -s jbi:mvn:org.apache.servicemix.samples.wsdl-first/wsdl-first-sa/3.3/zip
  • The Maven protocol enables you access to the maven repository artifacts based on the groupId, artifactId, version and type.
    groupId - org.apache.servicemix
    artifactId - servicemix-shared
    version - 2009.01
    type - zip/installer
  • Check the JBI components and Service Assembly are started:

    s...@root:/> jbi/list 
    Shared Libraries
    ----------------
    servicemix-shared - 2009.01 - ServiceMix :: Shared
    
    Components
    ----------
       State                  Name                  Description
    [Started ] [servicemix-jsr181             ]     ServiceMix :: JSR-181 Service Engine
    [Started ] [servicemix-http               ]     ServiceMix :: HTTP
    
    Service Assemblies
    ------------------
       State                  Name                  Description
    [Started ] [wsdl-first-sa                 ]     ServiceMix :: Samples :: WSDL first :: SA
    

  • Point your web browser to the following location to see the WSDL of the deployed web service:
    http://localhost:8192/PersonService/main.wsdl
  • Download the following html locally, browse it in your web browser and see the service in action:
    http://svn.apache.org/repos/asf/servicemix/smx3/tags/servicemix-3.3/samples/wsdl-first/client.html
  • Shutdown the Service Assembly by running the following command:
    jbi/shutdown wsdl-first-sa

top

Reply via email to