Fix bug on the use JMS classes

Fix bug on the use JMS classes