Results 1 to 5 of 5

Thread: Task scheduler threads running for ever

  1. #1
    Join Date
    Jun 2011
    Posts
    29

    Default Task scheduler threads running for ever

    The task scheduler threads created for pollers dont seem to be destroyed when the application is undeployed from the server.

    I close the spring application context in the ServletContextListener.contextDestroyed() method.
    What else should be done to destroy these task scheduler threads?

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,853

    Default

    Can you show how you've configured the TaskExecutor? The implementations provided by Spring are all also implementations of DisposableBean and have their destroy() methods called when the context is closed.

  3. #3
    Join Date
    Jun 2011
    Posts
    29

    Default

    hi Mark. thanks for your response.
    I believe task executor is not mandatory for a poller configuration. I haven't configured one.

    Here is my poller configuration:
    Code:
    	<si:chain input-channel="EmployeeUpdatedEventQ" output-channel="EmployeeUpdatedEventPubSubChnl">
    		<si:poller fixed-rate="30000" max-messages-per-poll="1">
    			<si:transactional transaction-manager="txManager" />
    		</si:poller>  
    		<si:filter ref="GlobalMsgSelector" />
    	</si:chain>

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,853

    Default

    Okay, and what are you polling from? What is on the other side of "EmployeeUpdatedEventQ"?

  5. #5
    Join Date
    Jun 2011
    Posts
    29

    Default

    Queue backed by a jdbc message store
    Here is the Q config:
    Code:
            <jdbc:message-store id="EmployeeUpdatedEventMsgStore" data-source="GlobalMsgStoreDS" region="EMPLOYEE_UPD_EVNT" />
    
    	<si:channel id="EmployeeUpdatedEventQ">
    		<si:queue message-store="EmployeeUpdatedEventMsgStore" capacity="10" /> 
    	</si:channel>

Tags for this Thread

Posting Permissions

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