public static void main(String[] args) throws Exception {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61616");
ActiveMQTopic pubTopic = new ActiveMQTopic("demo.org.servicemix.source");
System.out.println("Connecting to JMS server.");
TopicConnection connection = factory.createTopicConnection();
TopicSession session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
connection.start();
TopicRequestor requestor = new TopicRequestor(session, pubTopic);
System.out.println("Sending request.");
String payload = "";
BufferedReader reader = new BufferedReader(new FileReader("message.soap"));