Results 1 to 3 of 3

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

  1. #1
    Join Date
    Oct 2008
    Location
    Warsaw, Poland
    Posts
    124

    Exclamation 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
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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

  3. #3
    Join Date
    Oct 2008
    Location
    Warsaw, Poland
    Posts
    124

    Default

    Oleg,

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

    Regards,
    Krzysztof

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •