activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r534169 - /activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
Date Tue, 01 May 2007 17:44:50 GMT
Author: rajdavies
Date: Tue May  1 10:44:49 2007
New Revision: 534169

URL: http://svn.apache.org/viewvc?view=rev&rev=534169
Log:
use sendBody() method on the client

Modified:
    activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java

Modified: activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java?view=diff&rev=534169&r1=534168&r2=534169
==============================================================================
--- activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
(original)
+++ activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
Tue May  1 10:44:49 2007
@@ -56,11 +56,7 @@
         
         CamelClient client = new CamelClient(context);
         context.start();
-        client.send("jms:queue:test.a", new Processor() {
-            public void process(Exchange exchange) throws Exception {
-                exchange.getIn().setBody("foo");
-            }
-        });
+        client.sendBody("jms:queue:test.a", "foo");
         Thread.sleep(1000);
         context.stop();
     }



Mime
View raw message