Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{snippet:id=binding|lang=xml|url=http://cvs.servicemix.codehaus.org/*checkout*/servicemix/base/src/test/resources/org/servicemix/components/http/example.xml?rev=HEAD}

Using HTTP binding in a WAR

You may wish to configure ServiceMix's HTTP binding inside a WAR. To do this you need to register one or more instances of the SpringBindingServlet in your web.xml then map the servlet to the URI you wish.

Here's an example

Wiki Markup
{snippet:id=binding|lang=http|url=http://cvs.servicemix.codehaus.org/servicemix/tooling/servicemix-web/src/webapp/WEB-INF/web.xml?rev=HEAD}

Notice that the web.xml then refers to the endpoint name in the ServiceMix configuration file. e.g. this component

Wiki Markup
{snippet:id=binding|lang=httpBinding|url=http://cvs.servicemix.codehaus.org/servicemix/tooling/servicemix-web/src/webapp/WEB-INF/applicationContext.xml?rev=HEAD}