You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2005/05/23 22:15:33 UTC

Minimal server

Hi,

Perhaps this is a strange question.

Basically, I believe that (for many purposes) the
browser provides the easiest way to create a GUI. I
want to write a program that can be interfaced to via
a browser.

However, I do not want it to run out of Tomcat since I
want the presence of the java virtual machine to be
the only requirement in order for the program to run.

Can this be done? I basically want to program to have
a thread that listens to some port and launches a
servlet when a request is made.

Many thanks in advance!

Dola

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Minimal server

Posted by Will Hartung <wi...@msoft.com>.
> From: "Dola Woolfe" <do...@yahoo.com>
> Sent: Monday, May 23, 2005 1:15 PM

> Can this be done? I basically want to program to have
> a thread that listens to some port and launches a
> servlet when a request is made.

Tomcat itself is reasonably easy to embed, from what I understand. Jetty is
another light weight servlet container that is particularly well suited to
embedding as well.

While you can create minimal servers and such yourself, it's nice to have
something more full featured, because then you can simply code to the
Servlet API, and leverage the nice things that it does for you rather than
reinventing the assorted wheels.

So, you'll get things like Filters, Sessions, Event listeners, Request
processing, Forwarding, etc. The whole HTTP stack.

Regards,

Will Hartung
(willh@msoft.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Minimal server

Posted by PA <pe...@gmail.com>.
On May 23, 2005, at 22:15, Dola Woolfe wrote:

> Can this be done? I basically want to program to have
> a thread that listens to some port and launches a
> servlet when a request is made.

Sure. But perhaps something like Jetty, or Simple would be more 
appropriate.

http://jetty.mortbay.org/jetty/
http://simpleweb.sourceforge.net/

Here is an example of an application with uses Simple as an embedded 
HTTP engine:

http://zoe.nu/

Screenshots:

http://zoe.nu/itstories/story.php?data=stories&num=23&sec=2

Download:

http://zoe.nu/itstories/story.php?data=stories&num=24&sec=3

Source code:

http://dev.alt.textdrive.com/browser/ZOE/

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Minimal server

Posted by Simon Funnell <si...@atomic-operations.com>.
This is VERY minimal.

http://www-106.ibm.com/developerworks/library/j-nioserver/



----- Original Message ----- 
From: "Dola Woolfe" <do...@yahoo.com>
To: "Tom Cat" <to...@jakarta.apache.org>
Sent: Monday, May 23, 2005 9:15 PM
Subject: Minimal server


> Hi,
> 
> Perhaps this is a strange question.
> 
> Basically, I believe that (for many purposes) the
> browser provides the easiest way to create a GUI. I
> want to write a program that can be interfaced to via
> a browser.
> 
> However, I do not want it to run out of Tomcat since I
> want the presence of the java virtual machine to be
> the only requirement in order for the program to run.
> 
> Can this be done? I basically want to program to have
> a thread that listens to some port and launches a
> servlet when a request is made.
> 
> Many thanks in advance!
> 
> Dola
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org