msg.writeInt(1234);
msg.writeLong(1234567890);
msg.writeObject(new Integer(444));
msg.writeObject(null);
msg.writeShort((short)123);
msg.writeString("foobar");
producer = session.createProducer(queue1);
producer.send(msg,TestUtils.DELIVERY_MODE,3,0);
session.commit();
session.close();