A complete Java EE RESTful webservice example.