added beginning of JMS support