Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simpler servlet runner?

 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, this looks ideal, at a first glance.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can now report that I have used Jetty successfully in a prototype. It seems quite easy to use and does the job.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic