Avoid creating a new connection for each getMessage()
invocation. Create one connection at construct time, save it as an instance variable.
For each getMessage()
call, create a new session, get the message, then close the session.
When you're done, close the connection at destruction time.