Joined: Tue Mar 21, 2006 2:43 pm Posts: 1 Location: Halifax, NS, Canada
|
Hello all,
I'm having a little problem with the SessionFactoryObjectFactory (SFOF). It appears to be holding on to a lot of SessionFactoryImpl's (SFI) in the INSTANCES map. This is occuring because unit tests are creating the SFI's and never actually closing them.
I'm currently working on tracing down where each of these SFI's are created, and making sure it is closed, but I thought someone might have a suggestion on how to find all opened SFI's at the end of a test, and close them.
I don't see any way to get a list of the SFI's in the SFOF (other then using a private accessor, which I'd really like to avoid).
Anyone have any ideas?
Thanks,
Kenny
|
|