THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
 
  Apache ServiceMix NMR #usernavbar() #printableicon() #pdficon() #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).
  1. Quick Start

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

...

Anchor
top
top

1. Quick start

Installing the NMR

Downloading and

...

unarchiving the NMR distribution provides a ready to use JBI container.
To launch it, simply enter the following command:

Code Block

cd [NMR_HOME]
bin/servicemix

or on Windows

Code Block

cd [NMR_HOME]
bin\servicemix.bat

Installing the NMR from a plain ServiceMix Kernel

  • Install ServiceMix RuntimeKernel
  • Inside the Runtime console, launch the following commands:
    Code Block
    features /addUrl httpmvn://svnorg.apache.org/repos/asf/servicemix/smx4/obr-repo/features-snapshot.xml
    obr addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/repository-snapshot.xml
    nmr   
    jbiservicemix.nmr/apache-servicemix-nmr/1.0.0/xml/features
    features/install jbi
    

If you only want the NMR without the JBI container, you can run the following command instead:

Code Block

features/install nmr

You should have the following output:noformat

Panel
bgColor#000000

...

No Format
nopanel

...

true

...

smx@root:/> features

...

/addUrl 

...

mvn:

...

org.apache.servicemix.

...

nmr/apache-servicemix-nmr/1.0.0/xml/features
smx@root:/> features/install jbi

Installing an example

  • Inside the Kernel console, launch the following commands:
    Code Block
    
    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.
    Code Block
    
    groupId - org.apache.servicemix
    artifactId - servicemix-shared
    version - 2009.01
    type - zip/installer
    
  • Check the JBI components and Service Assembly are started:
    Panel
    bgColor#000000

    No Format
    nopaneltrue
    
    smx@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:
    Code Block
    
    http://localhost:8192/PersonService/main.wsdl
    
  • Download the following html locally, browse it in your web browser and see the service in action:
    Code Block
    
    

Installing an example

  • Inside the Runtime console, launch the following commands:
    Code Block
    
    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4smx3/obr-repotags/featuresservicemix-snapshot.xml
    3.3/samples/wsdl-first-example
    /client.html
    
  • Shutdown the Service Assembly by running the following commandPoint your web browser to the following location to see the WSDL of the deployed web service:
    Code Block
    http://guillaume-nodets-macpro.local:8192/PersonService/main.wsdljbi/shutdown wsdl-first-sa
    

#top

Wiki Markup
{scrollbar}