You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Klaus Villinger <kl...@villinger-it.de> on 2011/05/06 19:24:06 UTC
StatelessPool threads keep getting more
Hello,
I'm using an embedded OpenEJB 3.1.4 for our TestNG tests.
I try to shut down OpenEJB after each test case, but I keep getting
additional StatelessPool daemon threads after each test during the
TestNG run.
If I did not miss something obvious, all that is necessary is:
- setting "openejb.embedded.initialcontext.close" to "destroy" as
InitialContext properties for the LocalInitialContextFactory and
- close() that context at the test end.
Setting MaxSize etc in openejb.xml doesn't seem to be the right thing,
it didn't change that behaviour.
I've been able to produce that behaviour with the attached dummy test classes,
with one stateless bean and nothing else.
Has anyone an idea what I've been missing?
Thanks in advance,
Klaus