This changes the way me manage an envronment. Clients name themselves,
and the environment closes when all the clients release it. This seems
delicate, to say the least, so there's also a servlet context listener
you can use to make sure all environments are closed when the context
is shut down.
and the environment closes when all the clients release it. This seems
delicate, to say the least, so there's also a servlet context listener
you can use to make sure all environments are closed when the context
is shut down.