Danny,

> How hard is it to use sqlResources.xml from inside mailets and matchers?

What is the context of your question?  Are you thinking that mailets and
matchers OUGHT to use sqlResources.xml?  It isn't hard to do.  Using
sqlResources.xml is not as brain-dead simple as using a few initParameters
(as with JDBCListserv and JDBCAlias), but it does provide additional
functionality if needed.

There ought to be a support class, in addition to SQLResource, that provides
basic support to any repository, matcher or mailet that wants to use
sqlResources.xml.  SQLResource provides basic access to the contents of
sqlResources.xml, but it does not (and should not) provide environment
specific behavior.  There is a lot of code from JDBCMailRepository for
handling SQLResource that should be moved into a common helper class.

This helper class would contain such things as basic stuff for handling the
path, parsing the URL, creating the SQLResource instance, table existence,
connection acquisition, common behaviors to be specialized, etc.

Thoughts?

        --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to