Danny Angus wrote:
The IOC approach using MailetContext().getConnection( key ) gets my voteOr.. using IOC the container could supply a mailetDatasource on initialisation which would have a single method.. getConnection(). The last would make it harder for a single mailet to access more than one datasource, so I prefer the MailetContext().getConnection(datasourceName) route.
(where key is a key to one of possibly multiple datasource URLs declared by
a particular mailet type).
Cheers, Steve.
(who is watching the Mailet spec subject with interest as it is terribly
consistent with thoughts I have about containment/containers and the freedom
developers should have with respect to lifecycles, lifestyle, etc.).
:-)
--
Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
