Hivemind only cleans up threads that you tell it to manage, ie
Registry.setupThread()/Registry.cleanupThread().

We had the same problem momentarily in our unit tests, until we tracked down
the problem to that. Also be sure that you're not calling methods directly
on hivemind factories that would otherwise be called by an injected
session..Otherwise that thread too will not be managed.

Tapestry does this for you by calling setupThread()/cleanupThread() within
the ApplicationServlet that it uses. (If you choose to use it.)

On 12/20/05, Ron Piterman <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We use hivemind registry in JUnit, and it seems not to clean up threads,
> so all hivemind sessions remain open, causing very fast all database
> connections to be used :(
>
> Does anyone know the problem and, more important, a solution?
>
> Cheers,
> Ron
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to