This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new d7692be  Fix code block in polling consumer eip adoc
d7692be is described below

commit d7692be926f848c5b10d91f8bff3993415001a39
Author: Tadayoshi Sato <[email protected]>
AuthorDate: Fri Mar 5 21:50:13 2021 +0900

    Fix code block in polling consumer eip adoc
---
 .../src/main/docs/modules/eips/pages/polling-consumer.adoc             | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/polling-consumer.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/polling-consumer.adoc
index 13a6d61..62c073f 100644
--- 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/polling-consumer.adoc
+++ 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/polling-consumer.adoc
@@ -14,9 +14,12 @@ image::eip/PollingConsumerSolution.gif[image]
 
 In Java:
 
+[source,java]
+----
 javaEndpoint endpoint = context.getEndpoint("activemq:my.queue");
 PollingConsumer consumer = endpoint.createPollingConsumer(); Exchange
 exchange = consumer.receive();
+----
 
 The *`ConsumerTemplate`* (discussed below) is also available.
 

Reply via email to