Tomcat 5.5 and context.xml


2005-05-13 09:18:58 AM
jbuilder2
Hi there,
Apparently, with the change to configuring Resourses under a Context in the
new Tomcat 5.5, all the ResourceParams are out. Now, any parameters have
been changed to attributes for the Resource. The problem I have is with an
older syntax and what to do with it now?
Before Tomcat 5.5 I used to refer to a resource to email capabilities like
so:
<Resource name="mail/session" auth="CONTAINER" type="javax.mail.Session" />
<ResourceParams name="mail/session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
Since I can't do that anymore, how do I refer to this resource in the
context.xml file?
Regards,
Alan