You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Alexander Leyke <Al...@cs.com> on 2003/05/08 00:12:59 UTC

RE: AOLserver/Tomcat

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 <mt...@inet.hr> <ma...@inet.hr>
> To: 'aolserver' <ao...@aol.net> <ma...@aol.net>
> cc: Tomcat Developers List <to...@jakarta.apache.org> 
> <ma...@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