Charles,

The Host elements do not contain backgroundProcesserDelay. Here is a sample:

<Host name='domain.com'
debug='0'
appBase='/path/to/java/app'
unpackWARs='true'
autoDeploy='false'>
<Alias>www.domain.com</Alias>
<Context path='' docBase='' debug='0' reloadable='false'/>
<Valve  className='org.apache.catalina.authenticator.SingleSignOn'
debug='0'/>
<Valve  className='org.apache.catalina.valves.AccessLogValve'
directory=''
prefix='tomcat_access.'
suffix='.log'
pattern='common'
resolveHosts='false'/>
</Host>

In regards to Mark's statement. I'm not opposed to writing some XML parsing
tools to play nice with Tomcat. However, I'm still left trying to figure out
how Tomcat sorts that HashMap it creates for all <Host> elements. I've
looked for patterns that I just can't find. It's not sorted by element order
in the server.xml, nor by name attribute, or appBase.

I know it's not completely random as running the restart always yields the
results in the same order. But I just can't figure out said order.

Anyone else have any personal experience with figuring out the sorting
algorithm Tomcat uses on all <Hosts> in the server.xml on start?

Thanks for all the responses so far,

-Kyle



On 5/24/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> From: Mark H. Wood,UL 0115A,+1 317 274 0749,
> [mailto:[EMAIL PROTECTED] On Behalf Of Mark H. Wood
> Subject: Re: Server.xml Sort on Start
>
> I don't *know*, mind you, but random ordering suggests that the
> container starts a thread for each 'host' and the checks are taking
> place in those threads.

Not by default - the <Host> entries are processed by the thread that
handles the <Engine>.  However, setting backgroundProcesserDelay in a
<Host> element will cause it to be processed by its own thread.  (It's
default value is -1.)  Look at the Threads display in Lambda Probe for
ContainerBackgroundProcessor threads.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to