Hi Noel,

Totally understood about preparing for change. I can't figure out how to get a ComponentManager. This is the code I'm trying to imitate from JDBCVirtualUserTable:

--------------------------------------------------------------------
ComponentManager componentManager = (ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPO NENT_MANAGER);


// Get the DataSourceSelector service
DataSourceSelector datasources = (DataSourceSelector)componentManager.lookup(DataSourceSelector.ROLE);


// Get the data-source required.
datasource = (DataSourceComponent)datasources.select(datasourceName);

conn = datasource.getConnection();
--------------------------------------------------------------------

I can't figure out how to get a ComponentManager from the SMTPHandler, SMTPHandlerConfigurationData or MailServer. Any help?

Thanks!
Kenny

On Jan 11, 2004, at 3:40 PM, Noel J. Bergman wrote:

I found code in JDBCVirtualUserTable that gets a data source, is that
the proper way to get a data source in a place like SMTPHandler?

For now. And be prepared to change.


--- Noel

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


-- Kenny


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



Reply via email to