GeeCON Prague 2014*
The moose likes Servlets and the fly likes Simpler servlet runner? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Simpler servlet runner?" Watch "Simpler servlet runner?" New topic
Author

Simpler servlet runner?

Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
I am making a Web GUI for a Java application, using servlets. At the moment, I am running the servlets in Tomcat 4, separately to the main application; communication between the servlets and main application is by CORBA.
However, I don't really need all the super features of Tomcat for this application. In fact, they get in the way (e.g. ClassLoader problems). Also, it means that I have two JVMs consuming resources.
Is there a way to run a fixed set of servlets within my main application? A third-party library, perhaps?
Alternatively, is it a huge task to write a simple servlet runner, to go within my application?


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
Jetty is supposed to be a compact and fast servlet container. Search for "jetty java" to find lots of references. It is open source.
Bill
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Thanks, this looks ideal, at a first glance.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
I can now report that I have used Jetty successfully in a prototype. It seems quite easy to use and does the job.
 
GeeCON Prague 2014
 
subject: Simpler servlet runner?