Author: ningjiang
Date: Tue Sep 16 18:17:31 2008
New Revision: 696122
URL: http://svn.apache.org/viewvc?rev=696122&view=rev
Log:
CAMEL-910 updated the comment for the load-broker wiki
Modified:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/queue/version/Client.java
Modified:
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/queue/version/Client.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/queue/version/Client.java?rev=696122&r1=696121&r2=696122&view=diff
==============================================================================
---
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/queue/version/Client.java
(original)
+++
activemq/camel/trunk/examples/camel-example-loan-broker/src/main/java/org/apache/camel/loanbroker/queue/version/Client.java
Tue Sep 16 18:17:31 2008
@@ -27,7 +27,7 @@
import org.apache.camel.component.jms.JmsComponent;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.DefaultProducerTemplate;
-
+//START SNIPPET: client
public class Client extends RouteBuilder {
public static void main(String args[]) throws Exception {
@@ -42,7 +42,7 @@
ProducerTemplate template = context.createProducerTemplate();
context.start();
- // START SNIPPET: sending
+
// send out the request message
for (int i = 0; i < 2; i++) {
template.sendBodyAndHeader("jms:queue:loanRequestQueue",
@@ -50,9 +50,7 @@
Constants.PROPERTY_SSN, "Client" + i);
Thread.sleep(100);
}
- // END SNIPPET: sending
-
- // Start the loan broker
+ // Wait a while before stop the context
Thread.sleep(1000 * 5);
context.stop();
@@ -62,7 +60,7 @@
* Lets configure the Camel routing rules using Java code to pull the
response message
*/
public void configure() {
- // START SNIPPET: pulling
+
from("jms:queue:loanReplyQueue").process(new Processor() {
public void process(Exchange exchange) throws Exception {
@@ -72,7 +70,8 @@
}
});
- // END SNIPPET: pulling
+
}
}
+// END SNIPPET: client