I use multiple ksessions from a webApp servlet. I kept getting "Session is closed!" Exception from within "SingleSessionCommandService".
>Each session must have dedicated instance of Environment and looking at the code given you share environment.
This really saved my day!
Thanks a lot for that insigth!