« Return to Thread: Jencks Message driven POJOS threads left running after ctx.destroy

Jencks Message driven POJOS threads left running after ctx.destroy

by JerryShea :: Rate this Message:

Reply to Author | View in Thread

Hi,

I've cut and pasted the jencks JCA config from http://jencks.org/Message+Driven+POJOs and if I use it like this:
        AbstractApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {
                "/spring-jencks.xml",
        });
        Thread.sleep(3000);
        ctx.destroy();

after the spring application context has been created, a number of threads are started up (JCAContainer.afterPropertiesSet creates a Geronimo work manager which in turn creates a thread pool).

When ctx.destroy is called, JCAContainer.destroy gets called which in turn calls geronimoWorkManager.doStop() which does... nothing!

Shouldn't something be shutting down the thread pool? The threads that are created remain alive and prevent my application from closing down.

Thx, Jerry

 « Return to Thread: Jencks Message driven POJOS threads left running after ctx.destroy