There is also another possiblity. You can use the class as a shared object so
that it is cached but it is not a servlet. This keeps you from having the
overhead of a Servlet but you have the benefits of persistantcy for speed. I
use shared objects often when I want servlets to communicate with each other or
when I have code that I want to use often but is better off in a component so
that I can reuse it and it has no need to inherit the Servlet properties. With
a shared object you get the best of both worlds. A persistent object that can
be accessed through the getInstance() method and it does not have the overhead
of a Servlet.
Luther
John Joseph Brecht <[EMAIL PROTECTED]> on 05/14/99 11:53:58 AM
Please respond to "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Luther Andal/Avnet)
Subject: Re: Servlet Chaining
That is what I meant, loading another class and calling methods in it. What
I'm wondering is, is there a signifigant gain to having that class run
constantly as a servlet as opposed to loading and instantiating it just when
you need it.
john
>
> > Is it more efficient or stable to accomplish this by using a
> > second servlet as
> > opposed to just a regular Java app. loaded with a ClassLoader?
>
> What i believe is using a Java App. means loading another class and
> communicating back and forth with that class( calling methods) then sending
> data back to remote client. With servlet chaining i believe we are reducing
> this extra class required.Maybe increasing the speed.
> Someone correct me if i am wrong.
> komal.
> >
> > john
> >
> >
> > >
> > > For example, if u want that the data passed to servlet, needs
> > to be filtered
> > > out and again sent to applet. So the applet sends data to
> > servlet1, which in
> > > turn sends data to servlet2 which does the filtering and
> > finally send data
> > > to the applet.
> > > Hope this is clear
> > > komal
> > >
> > > > -----Original Message-----
> > > > From: A mailing list for discussion about Sun Microsystem's
> > Java Servlet
> > > > API Technology. [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Manu
> > > > Tayal
> > > > Sent: Wednesday, May 12, 1999 12:38 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Servlet Chaining
> > > >
> > > >
> > > > Hi Nimesh,
> > > > Similar to UNIX and DOS commands, you can chain
> > multiple servlets
> > > > together in a perticular order. The output of one servlet is passed as
> > > > input to next servlet in the chain; the output from the last
> > servlet in
> > > > the chain is returned to the browser.
> > > >
> > > > Manu.
> > > >
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > ~~~~~~~~~
> > > > # MANU TAYAL | WIPRO INFOTECH
> > > > #
> > > > # | 30,Mission Road, 1st Main,
> > > > #
> > > > # Software Engineer | S.R.Nagar,
> > > > #
> > > > # | Bangalore-560027,India.
> > > > #
> > > > # Technology Solutions |
> > > > #
> > > > # | TEL: 080-2241730/2275590
> > > > #
> > > > # WIPRO INFOTECH. | EXT: 3322,3321,3323
> > > > #
> > > > # | E-Mail:
> > > > [EMAIL PROTECTED] #
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > ~~~~~~~~~
> > > >
> > > > On Wed, 12 May 1999, Kenia Nimesh wrote:
> > > >
> > > > > What is Servlet Chaining??
> > > > > If its a very basic question excuse me .
> > > > >
> > > > > Nimesh
> > > > >
> > > >
> > > > __________________________________________________________________
> > > > _________
> > > > 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
> >
>
>
> --
> John Brecht
> [EMAIL PROTECTED]
> http://www.msu.edu/~brechtjo/
> Department of Physics and Astronomy
> Michigan State University
>
>
> Other affilitations:
>
> Laboratory for Instructional Technology in Education
> http://www.lite.msu.edu/
> Division of Science and Mathematics Education
> Michigan State University
>
> Basic Science and Remote Sensing Initiative
> http://bsrsi.msu.edu
> Department of Geography
> Michigan State University
>
> ___________________________________________________________________________
> 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
>
--
John Brecht
[EMAIL PROTECTED]
http://www.msu.edu/~brechtjo/
Department of Physics and Astronomy
Michigan State University
Other affilitations:
Laboratory for Instructional Technology in Education
http://www.lite.msu.edu/
Division of Science and Mathematics Education
Michigan State University
Basic Science and Remote Sensing Initiative
http://bsrsi.msu.edu
Department of Geography
Michigan State University
___________________________________________________________________________
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