Hello,

I have noticed that resource parameters are ignored when declared as follows:

   <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
 
   <ResourceParams name="mail/Session">
        <Parameter>
            <Name>mail.smtp.host</Name>
            <Value>smtp.dsl.net</Value>
        </Parameter>
    </ResourceParams> 

As opposed to:

   <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
 
    <ResourceParams name="mail/Session">
        <parameter>
            <name>mail.smtp.host</name>
            <value>smtp.dsl.net</value>
        </parameter>
    </ResourceParams> 

(The effect of the first example is that "mail.smtp.host" is not set and still holds 
its initial value of "localhost").

Although the "parameter" element in Tomcat docs is written in lowercase I thougth that 
it didn't matter. Does anyone know if
this behavior is intentional or it is a bug? Looks like it is a bug since there were 
no parsing errors reported by Tomcat.

Lukasz Szelag

Reply via email to