Implementing HTTPServlet interface in WebObjects application

184 Views Asked by At

We have a requirement to implement the HttpServlet interface in webobjects application. We all know that "WebObjects applications can be deployed as servlets inside a servlet container".But, our requirement is to deploy the servlet application in webobjects server.

Please clarify me on the following.

  • Do we have servlet container inside our webobjects server?
  • Can we implement HttpServlet interface in webobjects applications?
1

There are 1 best solutions below

3
On

WO itself doesn't include a Servlet container. As you noticed you rather run it itself as a Servlet within another container.

Of course you could implement a Servlet container in (the Servlet API on top of) WebObjects. You could either start out using a custom WORequestHandler or a WODirectAction. But that sounds really weird to me, maybe you should collect more information on why you want to do this. It probably makes more sense to run WO and the Servlet alongside in one container.