[ 
https://issues.apache.org/jira/browse/JAMES-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916815#action_12916815
 ] 

Eric Charles commented on JAMES-1054:
-------------------------------------

It's not about restarting components, but a bit linked to 
https://issues.apache.org/jira/browse/JAMES-1055 (the comand line interface).

The james script is only used to start/stop.

I was thinking to use cases where you have a running james server, and still 
want to invoke james script for stuff such as:
- mailbox imports (https://issues.apache.org/jira/browse/JAMES-1052)
- anything else that goes on report generation,...

Currently, the James Main is 
        final JamesServerApplicationContext context = new 
JamesServerApplicationContext(new String[] { "spring-beans.xml" });
All beans will be loaded, among other the server sockets.
So with this monolithic file, we have no access to mailbox when other instance 
is running.



> Split spring-beans.xml for more granular documentation and instanciation
> ------------------------------------------------------------------------
>
>                 Key: JAMES-1054
>                 URL: https://issues.apache.org/jira/browse/JAMES-1054
>             Project: JAMES Server
>          Issue Type: Improvement
>            Reporter: Eric Charles
>
> Current spring-beans.xml is huge and undocumented.
> We could split it and try to give James Main the ability to load all or part 
> of the beans.
> For example, when netty sockets are already started, for maintenance tasks, 
> the Main should not try to startt the netty sockets.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to