Announcement Announcement Module
Collapse
No announcement yet.
Imap adapter doesn't stop when stop() command is sent via control bus Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imap adapter doesn't stop when stop() command is sent via control bus

    Hi,

    I'm facing the following issue. The "imap-idle-channel-adapter" doesn't stop when the stop() command is sent to it via control bus. It works well for let's say first 2-3 attempts and then even the ImapIdleChannelAdapter was stopped itself the ImapMailReceiver is attempting to receive new messages. See attached log file for more details.

    This test was performed on an empty INBOX folder.

    Here is the code of my start and stop methods:

    Code:
    @Override
    	public void startComponent(String componentId) {
    		Message<String> operation = MessageBuilder.withPayload("@" + componentId + ".start()").build();
    		logger.info("Starting component: " + componentId);
    		controlBusInputChannel.send(operation);
    	}
    
    	@Override
    	public void stopComponent(String componentId) {
    		Message<String> operation = MessageBuilder.withPayload("@" + componentId + ".stop()").build();
    		logger.info("Stopping component: " + componentId);
    		controlBusInputChannel.send(operation);
    	}
    Regards,
    Krzysztof

  • #2
    Krzysztof

    Could you please file a bug report in JIRA
    I already have it fixed, but will wait with the commit till you file a bug.

    The problem is with the idel() method which is not not interruptible via 'regular means'. The only way to do it is to close the ImapFolder

    Comment


    • #3
      Oleg,

      Of course, here it is https://jira.springsource.org/browse/INT-1923

      Regards,
      Krzysztof

      Comment

      Working...
      X