We are working with 7.1.0 Final with Hornetq 2.2.11. Final and we have the same problem...
if (state != null && state != STATE.INITIALIZED)
throw new IllegalStateException("Cannot create session factory, server locator is closed (maybe it has been garbage collected)");
The exception is throwed. Why the exception is throwed, have you any solutions to solve this problem.
Thank for your response...