1 18 package org.apache.activemq.network.jms; 19 20 import javax.jms.Connection ; 21 import javax.jms.Destination ; 22 import javax.jms.JMSException ; 23 import javax.jms.Message ; 24 25 32 public class SimpleJmsMessageConvertor implements JmsMesageConvertor { 33 34 41 public Message convert(Message message) throws JMSException { 42 return message; 43 } 44 45 public Message convert(Message message, Destination replyTo) throws JMSException { 46 Message msg = convert(message); 47 if(replyTo != null) { 48 msg.setJMSReplyTo(replyTo); 49 }else{ 50 msg.setJMSReplyTo(null); 51 } 52 return msg; 53 } 54 55 public void setConnection(Connection connection){ 56 } 58 59 60 } 61 | Popular Tags |