Norman Maurer wrote:
Can you give me a tip howto access the getMailServer method for a
Handler in the SMTPandler chain ?

Probably it's not supported right now.
We should change the SMTPHandlerChain that already support configurable handlers, to also support Serviceable handlers.

We should add the serviceable interface to the SMTPHandlerChain, and call the service of the handlerChain in the SMTPServer.service() method.

Then in the service() method of the SMTPHandlerChain we can cycle over the handler and call ContainerUtil.service(handler,serviceManager) for each one.

Then in the handler you implement the serviceable interface and use the ServiceManager.lookup(MailServer.ROLE) method to get the mailserver.

Stefano


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

Reply via email to