You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Assaf Arkin <ar...@exoffice.com> on 2000/01/02 22:33:28 UTC
Re: [LONG TERM PLAN] Proposed Architecture for Tomcat.Next Servlet
Container
Craig has an interesting idea, of running Servlets using Interceptor.
Tomcat will use a default container through the Interceptor API, but you
can plug in a different container. In that case, c) is needed.
arkin
Stefano Mazzocchi wrote:
>
> Ray Racine wrote:
> >
> > Stefano Mazzocchi wrote:
> >
> > >
> > > So, the interceptor pattern is composed by
> > >
> > > a) Monitor (symmetric): performs side actions while nothing is modified.
> > > This is automatically transparent to all and servlet operation is
> > > automatically portable since nothing is modified by its presence.
> > >
> > > b) Filter (asymmetric): performs request filtering.
> > >
> > > c) Servlet: generates a response, given a request.
> > >
> > > Decomposed in these atomic subpatterns, I see no problems for monitors
> > > at all, but I do see problems for the "filter" and "servlet"
> > > subpatterns.
> >
> > c) Seems redundant given the availability of b). We already have a servlet
> > response generator available "within" the wrapping interceptor. Tomcat.
> >
> > In other words, instead of having the interceptor generate a response,
> > leverage the fact we have a servlet engine available. Use the
> > Filter/Rewrite functionality in the interceptor to filter/rewrite the request
> > to invoke a specific servlet(s) in Tomcat to generate whatever response is
> > required.
>
> Good point. This is part of what I was leading at.
>
> I must be honest, I don't like c) operation, but I don't see the pattern
> globally enough to propose a better solution.
>
> Craig? Assaf? can we get rid of c) without destroying the whole thing?
>
> --
> Stefano Mazzocchi One must still have chaos in oneself to be
> able to give birth to a dancing star.
> <st...@apache.org> Friedrich Nietzsche
> --------------------------------------------------------------------
> Come to the first official Apache Software Foundation Conference!
> ------------------------- http://ApacheCon.Com ---------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org