Versions Compared

Key

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

...

Next, you need to create a web.xml deployment descriptor. The deployment descriptor details information about the web application in the WAR. In this case, it says that the Apache Wink JAX-RS servlet should be initialized with a HelloWorldApplication instance. Also, any requests that begin with /rest/ will be handled by the Apache Wink JAX-RS servlet. So, the suffix of the request URL requires would be "/rest/helloworld" to reach the HelloWorld resource.

...