[ 
https://issues.apache.org/jira/browse/JAMES-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

TzeKai Lee updated JAMES-1357:
------------------------------

    Attachment: reloadable_mail_processor_v2.patch

This patch should be a usable patch with few changes of spring-server.xml:
change class of mailprocessor to 
org.apache.james.mailetcontainer.impl.camel.CamelCompositeReloadableProcessor
add
<entry 
key="org.apache.james:type=component,component=mailetcontainer,name=mailprocessor"
 value-ref="mailprocessor"/>
<entry key="org.apache.james:type=container,name=configurationprovider" 
value-ref="configurationprovider"/>
to beans of spring MBean exporter
add
org.apache.james.container.spring.lifecycle.ConfigurationProviderManagementMBean
org.apache.james.mailetcontainer.impl.ReloadableManagementMBean
to managedInterfaces of spring MBean assembler

Invoke reloadConfiguration of configurationprovider with "mailprocessor" then 
invoke reload of mailprocessor should do the work.
                
> Add reloadability to mail processors
> ------------------------------------
>
>                 Key: JAMES-1357
>                 URL: https://issues.apache.org/jira/browse/JAMES-1357
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: SpoolManager & Processors
>            Reporter: TzeKai Lee
>         Attachments: reloadable_mail_processor.patch, 
> reloadable_mail_processor_v2.patch
>
>
> Currently mail processor/matcher/mailet configuration requires a james server 
> restart to load new configuration. It would be nice to using new 
> configuration without server restart.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to