james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: JDBCListserv mailet
Date Wed, 15 May 2002 15:30:25 GMT

> 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.


	--- Noel

To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>

View raw message