O'Reilly logo

Instant Apache ServiceMix How-to by Henryk Konsek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exposing the Rest web service (Should know)

From the previous recipes, you learned how to expose WSDL-based web services. This recipe will guide you through the process of exposing REST (REpresentational State Transfer) services on top of the ServiceMix container.

Getting ready

Let's start by creating a new Camel module for ServiceMix. The recipe titled How to create and deploy a new Camel route explains how to do this. As the name of the generated artifact, choose rest-example. The command you need to execute is presented here.

mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes-DarchetypeArtifactId=camel-archetype-spring -DgroupId=com.packtpub.servicemixhowto -DartifactId=rest-example -Dversion=1.0-SNAPSHOT

In order to expose ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required