Map<String, Object> request = new TreeMap<String, Object>();
request.put("args", new Object[]{"cheese"});
// create a new temp response queue
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination responseQueue = session.createTemporaryQueue();
// Create a request messages
ObjectMessage requestMessage = session.createObjectMessage();
requestMessage.setJMSReplyTo(responseQueue);
requestMessage.setObject((Serializable) request);