MessageProducer prod = sess.createProducer(queue);
//Make persistent to make sure message gets serialized
prod.setDeliveryMode(DeliveryMode.PERSISTENT);
MessageConsumer cons = sess.createConsumer(queue);
TestMessage tm = new TestMessage(123, false);
ObjectMessage om = sess.createObjectMessage();