Sorry, my mail server seems to be playing up, see below for port stuff i.e.
you can connect to the servlet engine by specifying a port of the form
http://localhost:8080/
but this is an http request, and so the servlet engine will have to be able
to cope with http requests.

-----Original Message-----
From: Martin Spiers [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 13:00
To: [EMAIL PROTECTED]
Subject: Re: Reg: Servlets and ports


For lightweight playing around you can run apache tomcat in standalone mode
(i.e. allow the http connector to run as well as the servlet connector) and
either connect to the http connector specifically using the port (default
8080) or run the http connector on port 80 (the default for a web server).
Tomcat will then act as a web server/servlet engine combined and serve
static web pages as well as jsp and servlets.

This is only for playing around as apache is much faster/more
configurable/better when it comes to acting as a web server. The apache to
tomcat integration is relatively easy to set-up.

-----Original Message-----
From: Chalapathi Rao A L [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 12:28
To: [EMAIL PROTECTED]
Subject: Re: Reg: Servlets and ports


The web server actually listens for the http requests on a specific port
and if it finds that the request is made by a client for a servlet, the
web server will forward the request to the servlet engine ( which is
running on some port). The servlet engine executes the requested servlet
and sends the results back to
the client ( via the web server) .
The web server and servlet engine are both required to run servlets.
They are just two server processes running on different ports. But the
clients can only directly send their request to the web server and not
to servlet engine.

hope that is clear.

- Rao

> ----------
> From:         Rajeshwar Rao.V[SMTP:[EMAIL PROTECTED]]
> Sent:         Tuesday, May 15, 2001 4:49 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Reg: Servlets and ports
>
> Hi Nic,
>
> >servlet container does all the network stuff, such as listening to
> the
> port
>
> I have doubt now.Is it Servlet container or web server, which one
> listens on
> port?
> As far as i know it is web server.
> I think there is a big difference between web server and servlet
> engine.
>  If i am wrong or want to add more stuff regarding this,please do it
> ASAP.
> regds
> -raj-
>
> -----Original Message-----
> From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 4:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Reg: Servlets and ports
>
>
> >>> Raghavendran_c <[EMAIL PROTECTED]> 15-May-01 11:38:30 AM
> >>>
>
> >Can servlets be configured to listen to any user-defined
> >port or is it neccessary that they should listen to that port
> >which the web server listens at ?
>
> Servlets don't really participate in the network environment. The
>  and dispatching requests to particular servlets.
>
> You probably don't understand the architecture, I suggest you read
> some of the introductory material there is around:
>
> Resources:
>    http://java.sun.com/products/servlet/external-resources.html
>
>
> >Can we develop mail server components using Servlets???
>
> No.
>
> See the archives:
>    http://archives.java.sun.com/archives/servlet-interest.html
>
>
>
> Nic Ferrier
>
> ______________________________________________________________________
> _____
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ______________________________________________________________________
> _____
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to