The error message "Cannot perform operation, connection is closed" means that the application has
1. created a connection (using connection=connectionFactory.createConnection())
2, closed the connection (using connection.close())
3. tried to use the connection to create a session (using session=connection.createSession())
The first place to look, then, is at the application code to confirm whether or not your code is (perhaps
unintentionally) doing that.
Nigel