Versions Compared

Key

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

...

In order to produce an Atom document according to the JAX-RS specification using Apache Wink perform the following steps:

  1. Open the Eclipse developement envirnment development environment and then create a "Dynamic Web Project".
  2. Add Wink & its dependent JARs into Java Build Path and Java EE Module Dependencies.
  3. Create a POJO class and a method that creates Atom feed document. Annotate the class & its methods with the required JAX-RS annotations as below:
    ProduceAtom.java
  4. Add org.apache.wink.server.internal.servlet.RestServlet into web.xml and specify the path of above Resource class in it's init-param.
    See ProduceAtomWinkElegant_web.xml and application
  5. Deploy the web-application and access it using the url http://localhost:8080/ProduceAtom_Wink_Elegant/rest/getAtom
  6. Final WAR -> ProduceAtom_Wink_Elegant.zip (add Wink & its dependent JARs under ProduceAtom_Wink_Elegant\WEB-INF\lib and re-zip it as WAR).

...