Unmanaged Threads Spring Quartz Websphere Hibernate

前端 未结 8 2089
囚心锁ツ
囚心锁ツ 2020-12-06 06:54

It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads.

I have done some readin

8条回答
  •  旧巷少年郎
    2020-12-06 07:21

    I have recently encountered this problem. Practically you need:

    1. Implement thread pool by delegating work to Websphere Work Manager. (Quartz provides only SimpleThreadPool that run jobs on unmanaged threads). Tell quartz to use this thread pool by org.quartz.threadPool.class property
    2. Tell quartz to use WorkManagerThreadExecutor (or implement custom one) by org.quartz.threadExecutor.class property
    3. A bit patience with cumbersome legacy web containers :)

    Here is github demo of using Quartz with Websphere (and also Tomcat).

    Hope it helps someone..

提交回复
热议问题