Changed the JMS publisher from the old version 1.1 API to 2.0 API. It is a lot simpler. Just inject the JMSContext. The student still has to create the MDB or Message Receiver and send an email. ;)