I've added a test on SessionCloseOnGCTest (testValidateLeakWithClosedSessions),
and the only reason the is passing is because I missed an assertion.
The test is creating two sessions, and closing them allright but not closing the factory.
The factory on this case will leak, since it will be referenced by the
PingRunnable->ConnectionManager->ClientSessionFactory.
I have a fix for this already, by transfering the field from ClientSessionFactoryImpl to
ClientSession.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249972#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...