Once you install it locally, let TOMCAT_HOME be the install directory. Tomcat is available for download from its website. There is also a documented Apache Ant script that builds the novels service (or any other service or website) and deploys it under Tomcat or the equivalent. The code and a README that summarizes how to install Tomcat are available on my website. My choice is Tomcat, but the service should work (famous last words!) if it's hosted on, for example, Jetty or even a Java Application Server. Deploy the novels web serviceĭeploying the novels web service requires a web server, of course. I'll demonstrate this with the novels example. Nonetheless, the HttpServlet on its own provides a lightweight, flexible, powerful, and well-tested API for delivering such services. Some Java frameworks, such as Jersey (JAX-RS) and Restlet, are designed for Restful services. The servlet code focuses on processing client requests and generating the appropriate responses, leaving the devilish details to utilities in the Novels class. The servlet acts as an HTTP endpoint for client CRUD requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |