Improving the performances of JMS-based applications