REST services are very in so you might want to read this article (Configuring JSON for RESTful Web Services in Jersey 1.0) on how to use the Jersey REST framework. RESTlets is another Java API trying to standardize how to develop REST services using Java.