Jms optimization