> craigmcc    01/03/24 12:52:08
>
>   Modified:    catalina build.xml
>                catalina/src/share/org/apache/naming/factory
>                         ResourceFactory.java
>   Added:       catalina/src/share/org/apache/naming/factory
>                         MailSessionFactory.java
>   Log:
>   Add a naming context resource factory for javax.mail.Session resources
>   (compliant with J2EE requirements) so that web applications can look up
>   and utilize a preconfigured javax.mail.Session instance.  The resource
is
>   configured by creating <Resource> and <ResourceParams> elements nested
in
>   the <Context> or <DefaultContext> element in "conf/server.xml" -- the
>   example application will be updated to demonstrate this shortly.
>
>   NOTE:  the mechanism by which new object factories are registered needs
to
>   be generalized.

Why ? You just need to specify a factory parameter in the reference
parameters.

Remy

Reply via email to