Your sample code uses stateless sessions, not stateful, so not sure where dispose applies here. Stateless sessions are fire-and-forget. So once you execute it, you should set it to null in your example, otherwise yes the reference to it will keep existing.