javaapachetomcat

How can I run a Java app on Apache 2.2 without Tomcat?


I'm building a webservice with Java that does not use JSP or servlets, and want to run it on my Apache HTTP server without having to install and configure Tomcat. Is this possible (easily), and how can I go about it?

I've been searching for information on this and the only thing I've come across is the mod_jk Tomcat connector which still requires Tomcat to be installed. Am I missing something?


Solution

  • First of all, Servlets is the very basics of Java for Web development. So, whatever web development you are doing, like Web Services, you'll need a Servlet Container, as Tomcat.

    So the answer to your question is "you cant run it's only on Apache HTTP Server", because it's not a Servlet Container.