tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Leyke <AlexLey...@cs.com>
Subject RE: AOLserver/Tomcat
Date Wed, 07 May 2003 22:12:59 GMT
Mladen,

I am a bit confused about URI maps stuff. I think there are 2 valid choices:

-- make connector module intercept all Web server requests and then use 
workerEnv->uriMap->mapUri() call to check if request belongs to Tomcat. 
I am bothered by search overhead of this option, esp. since AOLserver 
lets one register URL patterns of interest at startup.

-- figure out all URI entities in workers2.properties at startup and 
register them in server-specific manner for handling by Tomcat. Then I 
should
    1. look for workerEnv->uriMaps->vhosts table
    2. look for webapps tables in each vhost
    3. look for exactMatch, prefixMatch, suffixMatch, regexpMatch tables 
in each webapp
    4. scan each element in match tables

Is this a proper approach? Are the match tables guaranteed not to have 
duplicate elements?

Thanks, Alex

> -------- Original Message --------
> Subject: RE: AOLserver/Tomcat
> Date: Tue, 22 Apr 2003 19:15:28 +0200
> From: Mladen Turk <mturk@inet.hr> <mailto:mturk@inet.hr>
> To: 'aolserver' <aolserver@aol.net> <mailto:aolserver@aol.net>
> cc: Tomcat Developers List <tomcat-dev@jakarta.apache.org> 
> <mailto:tomcat-dev@jakarta.apache.org>
> Organization: Apache Software Foundation
>
>
>
> > -----Original Message-----
> > From: AlexLeykek@cs.com
> >
> > We'll be happy to assist with further questions.
>
> line 580+ of nsjk2.c:
>
>     /* create context with proper worker info for each URI registered in
> workers2.properties */
>     uriMap = workerEnv->uriMap->maps;
>
>
> You should be aware that the uriMap->maps is a raw temp table that gets
> processed during uriMap.init and is split to
> host >> context >> uri tables.
> So you have vhost table, each having context table, each having uri
> maps. Since you are (as far as I can see) not using uriMap->mapUri call,
> you should parse that tables, since the maps does not contain all the
> maps. There is a stuff called inheritGlobals that duplicates all the
> context and uri tables during init phase, creating missing context and
> maps, and those are not present in the maps table.
>
>
> MT.
>



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


Mime
View raw message