This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Simpler servlet runner?" Watch "Simpler servlet runner?" New topic

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

Joined: Mar 22, 2000
Posts: 13037
Jetty is supposed to be a compact and fast servlet container. Search for "jetty java" to find lots of references. It is open source.
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.
I agree. Here's the link:
subject: Simpler servlet runner?
It's not a secret anymore!