COMP 655: Distributed/Operating Systems - Winter 2015 2025-01-31 03:17:53 UTC | |||||||||||||||||||||||
| Hello, world in Jersey
This is a very simple, GET-only web application built with Jersey. It has two purposes:
You can download hello-jersey.war directly into your GlassFish's autodeploy directory. It also contains source code. It has been deployed on einstein. The following links exercise its capabilities
Note also the WEB-INF/web.xml in this demo. It tells the container to use a general-purpose ServletContainer class supplied by Jersey. That class knows how to scan your code for JAX-RS-annotated classes and methods, and invoke them when necessary. You should be able to use this same web.xml for all of your Jersey-based servlets, unless you want to change the display name to fit your web app. The content is below. <?xml version="1.0"
encoding="UTF-8"?> |