{"id":26053,"date":"2014-06-03T07:00:38","date_gmt":"2014-06-03T04:00:38","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=26053"},"modified":"2014-06-02T14:58:22","modified_gmt":"2014-06-02T11:58:22","slug":"spring-integration-java-dsl-sample","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html","title":{"rendered":"Spring Integration Java DSL sample"},"content":{"rendered":"<p>A new <a href=\"https:\/\/spring.io\/blog\/2014\/05\/08\/spring-integration-java-dsl-milestone-1-released\">Java based DSL<\/a> has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java based configuration instead of using the Spring XML based configuration.<\/p>\n<p>I tried the DSL for a sample Integration flow that I have &#8211; I call it the <a href=\"http:\/\/www.javacodegeeks.com\/2012\/06\/rube-goldberg-spring-integration_22.html\">Rube Goldberg flow<\/a>, for it follows a convoluted path in trying to capitalize a string passed in as input. The flow looks like this and does some crazy things to perform a simple task:<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n<a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/06\/rube.gif\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-26093\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/06\/rube.gif\" alt=\"rube\" width=\"640\" height=\"360\" \/><\/a><\/p>\n<ol>\n<li>It takes in a message of this type &#8211; &#8220;hello from spring integ&#8221;<\/li>\n<li>splits it up into individual words(hello, from, spring, integ)<\/li>\n<li>sends each word to a ActiveMQ queue<\/li>\n<li>from the queue the word fragments are picked up by a enricher to capitalize each word<\/li>\n<li>placing the response back into a response queue<\/li>\n<li>It is picked up, resequenced based on the original sequence of the words<\/li>\n<li>aggregated back into a sentence(&#8220;HELLO FROM SPRING INTEG&#8221;) and<\/li>\n<li>returned back to the application.<\/li>\n<\/ol>\n<p>To start with Spring Integration Java DSL, a simple Xml based configuration to capitalize a String would look like this:<\/p>\n<pre class=\" brush:xml;wrap-lines:false\">&lt;channel id=\"requestChannel\"\/&gt;\r\n\r\n&lt;gateway id=\"echoGateway\" service-interface=\"rube.simple.EchoGateway\" default-request-channel=\"requestChannel\" \/&gt;\r\n\r\n&lt;transformer input-channel=\"requestChannel\" expression=\"payload.toUpperCase()\" \/&gt;<\/pre>\n<p>There is nothing much going on here, a messaging gateway takes in the message passed in from the application, capitalizes it in a transformer and this is returned back to the application.<\/p>\n<p>Expressing this in Spring Integration Java DSL:<\/p>\n<pre class=\" brush:java\">@Configuration\r\n@EnableIntegration\r\n@IntegrationComponentScan\r\n@ComponentScan\r\npublic class EchoFlow {\r\n\r\n @Bean\r\n public IntegrationFlow simpleEchoFlow() {\r\n  return IntegrationFlows.from(\"requestChannel\")\r\n    .transform((String s) -&gt; s.toUpperCase())\r\n    .get();\r\n }\r\n}\r\n\r\n@MessagingGateway\r\npublic interface EchoGateway {\r\n @Gateway(requestChannel = \"requestChannel\")\r\n String echo(String message);\r\n}<\/pre>\n<p>Do note that @MessagingGateway annotation is not a part of Spring Integration Java DSL, it is an existing component in Spring Integration and serves the same purpose as the gateway component in XML based configuration. I like the fact that the transformation can be expressed using typesafe Java 8 lambda expressions rather than the Spring-EL expression. Note that the transformation expression could have coded in quite few alternate ways:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\" brush:java\">??.transform((String s) -&gt; s.toUpperCase())<\/pre>\n<p>Or:<\/p>\n<pre class=\" brush:java\">??.&lt;String, String&gt;transform(s -&gt; s.toUpperCase())<\/pre>\n<p>Or using method references:<\/p>\n<pre class=\" brush:java\">??.&lt;String, String&gt;transform(String::toUpperCase)<\/pre>\n<p>Moving onto the more complicated Rube Goldberg flow to accomplish the same task, again starting with XML based configuration. There are two configurations to express this flow:<\/p>\n<p>rube-1.xml: This configuration takes care of steps 1, 2, 3, 6, 7, 8 :<\/p>\n<ol>\n<li><b>It takes in a message of this type &#8211; &#8220;hello from spring integ&#8221;<\/b><\/li>\n<li><b>splits it up into individual words(hello, from, spring, integ)<\/b><\/li>\n<li><b>sends each word to a ActiveMQ queue<\/b><\/li>\n<li>from the queue the word fragments are picked up by a enricher to capitalize each word<\/li>\n<li>placing the response back into a response queue<\/li>\n<li><b>It is picked up, resequenced based on the original sequence of the words<\/b><\/li>\n<li><b>aggregated back into a sentence(&#8220;HELLO FROM SPRING INTEG&#8221;) and<\/b><\/li>\n<li><b>returned back to the application.<\/b><\/li>\n<\/ol>\n<pre class=\" brush:xml;wrap-lines:false\">&lt;channel id=\"requestChannel\"\/&gt;\r\n\r\n&lt;!--Step 1, 8--&gt;\r\n&lt;gateway id=\"echoGateway\" service-interface=\"rube.complicated.EchoGateway\" default-request-channel=\"requestChannel\"\r\n   default-reply-timeout=\"5000\"\/&gt;\r\n\r\n&lt;channel id=\"toJmsOutbound\"\/&gt;\r\n\r\n&lt;!--Step 2--&gt;\r\n&lt;splitter input-channel=\"requestChannel\" output-channel=\"toJmsOutbound\" expression=\"payload.split('\\s')\"\r\n    apply-sequence=\"true\"\/&gt;\r\n\r\n&lt;channel id=\"sequenceChannel\"\/&gt;\r\n\r\n&lt;!--Step 3--&gt;\r\n&lt;int-jms:outbound-gateway request-channel=\"toJmsOutbound\" reply-channel=\"sequenceChannel\"\r\n        request-destination=\"amq.outbound\" extract-request-payload=\"true\"\/&gt;\r\n\r\n\r\n&lt;!--On the way back from the queue--&gt;\r\n&lt;channel id=\"aggregateChannel\"\/&gt;\r\n\r\n&lt;!--Step 6--&gt;\r\n&lt;resequencer input-channel=\"sequenceChannel\" output-channel=\"aggregateChannel\" release-partial-sequences=\"false\"\/&gt;\r\n\r\n&lt;!--Step 7--&gt;\r\n&lt;aggregator input-channel=\"aggregateChannel\"\r\n   expression=\"T(com.google.common.base.Joiner).on(' ').join(![payload])\"\/&gt;<\/pre>\n<p>and rube-2.xml for steps 4, 5:<\/p>\n<ol>\n<li>It takes in a message of this type &#8211; &#8220;hello from spring integ&#8221;<\/li>\n<li>splits it up into individual words(hello, from, spring, integ)<\/li>\n<li>sends each word to a ActiveMQ queue<\/li>\n<li><b>from the queue the word fragments are picked up by a enricher to capitalize each word<\/b><\/li>\n<li><b>placing the response back into a response queue<\/b><\/li>\n<li>It is picked up, resequenced based on the original sequence of the words<\/li>\n<li>aggregated back into a sentence(&#8220;HELLO FROM SPRING INTEG&#8221;) and<\/li>\n<li>returned back to the application.<\/li>\n<\/ol>\n<pre class=\" brush:xml;wrap-lines:false\">&lt;channel id=\"enhanceMessageChannel\"\/&gt;\r\n\r\n&lt;int-jms:inbound-gateway request-channel=\"enhanceMessageChannel\" request-destination=\"amq.outbound\"\/&gt;\r\n\r\n&lt;transformer input-channel=\"enhanceMessageChannel\" expression=\"(payload + '').toUpperCase()\"\/&gt;<\/pre>\n<p>Now, expressing this Rube Goldberg flow using Spring Integration Java DSL, the configuration looks like this, again in two parts:<\/p>\n<p>EchoFlowOutbound.java:<\/p>\n<pre class=\" brush:java\">@Bean\r\n public DirectChannel sequenceChannel() {\r\n  return new DirectChannel();\r\n }\r\n\r\n @Bean\r\n public DirectChannel requestChannel() {\r\n  return new DirectChannel();\r\n }\r\n\r\n @Bean\r\n public IntegrationFlow toOutboundQueueFlow() {\r\n  return IntegrationFlows.from(requestChannel())\r\n    .split(s -&gt; s.applySequence(true).get().getT2().setDelimiters(\"\\\\s\"))\r\n    .handle(jmsOutboundGateway())\r\n    .get();\r\n }\r\n\r\n @Bean\r\n public IntegrationFlow flowOnReturnOfMessage() {\r\n  return IntegrationFlows.from(sequenceChannel())\r\n    .resequence()\r\n    .aggregate(aggregate -&gt;\r\n      aggregate.outputProcessor(g -&gt;\r\n        Joiner.on(\" \").join(g.getMessages()\r\n          .stream()\r\n          .map(m -&gt; (String) m.getPayload()).collect(toList())))\r\n      , null)\r\n    .get();\r\n }<\/pre>\n<p>and EchoFlowInbound.java:<\/p>\n<pre class=\" brush:java\">@Bean\r\npublic JmsMessageDrivenEndpoint jmsInbound() {\r\n return new JmsMessageDrivenEndpoint(listenerContainer(), messageListener());\r\n}\r\n\r\n@Bean\r\npublic IntegrationFlow inboundFlow() {\r\n return IntegrationFlows.from(enhanceMessageChannel())\r\n   .transform((String s) -&gt; s.toUpperCase())\r\n   .get();\r\n}<\/pre>\n<p>Again here the code is completely typesafe and is checked for any errors at development time rather than at runtime as with the XML based configuration. Again I like the fact that transformation, aggregation statements can be expressed concisely using Java 8 lamda expressions as opposed to Spring-EL expressions.<\/p>\n<p>What I have not displayed here is some of the support code, to set up the <a href=\"https:\/\/github.com\/bijukunjummen\/rg-si\/blob\/master\/src\/main\/resources\/rube\/complicated\/broker.xml\">activemq test infrastructure<\/a>, this configuration continues to remain as xml and I have included this code in a sample github project.<\/p>\n<p>All in all, I am very excited to see this new way of expressing the Spring Integration messaging flow using pure Java and I am looking forward to seeing its continuing evolution and may be even try and participate in its evolution in small ways.<\/p>\n<p>Here is the entire working code in a <a href=\"https:\/\/github.com\/bijukunjummen\/rg-si\">github repo<\/a>: https:\/\/github.com\/bijukunjummen\/rg-si<\/p>\n<h2>Resources and Acknowledgement:<\/h2>\n<ul>\n<li>Spring Integration Java DSL <a href=\"https:\/\/spring.io\/blog\/2014\/05\/08\/spring-integration-java-dsl-milestone-1-released\">introduction blog article<\/a> by <a href=\"https:\/\/github.com\/artembilan\">Artem Bilan<\/a>: https:\/\/spring.io\/blog\/2014\/05\/08\/spring-integration-java-dsl-milestone-1-released<\/li>\n<li>Spring Integration Java DSL <a href=\"https:\/\/github.com\/spring-projects\/spring-integration-extensions\/wiki\/Spring-Integration-Java-DSL-Reference\">website and wiki<\/a>: https:\/\/github.com\/spring-projects\/spring-integration-extensions\/wiki\/Spring-Integration-Java-DSL-Reference. A lot of code has been shamelessly copied over from this wiki by me! Also, a big thanks to <b>Artem<\/b> <a href=\"https:\/\/github.com\/artembilan\/si-java-dsl-cafe-demo\/issues\/1\">for guidance on a question that I had<\/a><\/li>\n<li>Webinar by <a href=\"https:\/\/twitter.com\/gprussell\"><b>Gary Russell<\/b><\/a> on Spring Integration 4.0 in which Spring Integration Java DSL is covered in great detail.<\/li>\n<\/ul>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/www.java-allandsundry.com\/2014\/05\/spring-integration-java-dsl-sample.html\">Spring Integration Java DSL sample<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Biju Kunjummen at the <a href=\"http:\/\/www.java-allandsundry.com\/\">all and sundry<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java based configuration instead of using the Spring XML based configuration. I tried the DSL for a sample Integration flow that I have &#8211; I call it the Rube Goldberg &hellip;<\/p>\n","protected":false},"author":236,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[356,30,410],"class_list":["post-26053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-dsl","tag-spring","tag-spring-integration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring Integration Java DSL sample<\/title>\n<meta name=\"description\" content=\"A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Integration Java DSL sample\" \/>\n<meta property=\"og:description\" content=\"A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-03T04:00:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Biju Kunjummen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Biju Kunjummen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html\"},\"author\":{\"name\":\"Biju Kunjummen\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/802eedfe6f17c3c13fa656af46b6b0e5\"},\"headline\":\"Spring Integration Java DSL sample\",\"datePublished\":\"2014-06-03T04:00:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html\"},\"wordCount\":782,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"DSL\",\"Spring\",\"Spring Integration\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html\",\"name\":\"Spring Integration Java DSL sample\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2014-06-03T04:00:38+00:00\",\"description\":\"A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/06\\\/spring-integration-java-dsl-sample.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Spring Integration Java DSL sample\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/802eedfe6f17c3c13fa656af46b6b0e5\",\"name\":\"Biju Kunjummen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g\",\"caption\":\"Biju Kunjummen\"},\"sameAs\":[\"http:\\\/\\\/biju-allandsundry.blogspot.com\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Biju-Kunjummen\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Integration Java DSL sample","description":"A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html","og_locale":"en_US","og_type":"article","og_title":"Spring Integration Java DSL sample","og_description":"A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java","og_url":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2014-06-03T04:00:38+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Biju Kunjummen","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Biju Kunjummen","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html"},"author":{"name":"Biju Kunjummen","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/802eedfe6f17c3c13fa656af46b6b0e5"},"headline":"Spring Integration Java DSL sample","datePublished":"2014-06-03T04:00:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html"},"wordCount":782,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["DSL","Spring","Spring Integration"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html","url":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html","name":"Spring Integration Java DSL sample","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2014-06-03T04:00:38+00:00","description":"A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2014\/06\/spring-integration-java-dsl-sample.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Spring Integration Java DSL sample"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/802eedfe6f17c3c13fa656af46b6b0e5","name":"Biju Kunjummen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/66af1504c76f011746c89812efce168850f07dce91ce881e62795e10c99d30b3?s=96&d=mm&r=g","caption":"Biju Kunjummen"},"sameAs":["http:\/\/biju-allandsundry.blogspot.com"],"url":"https:\/\/www.javacodegeeks.com\/author\/Biju-Kunjummen"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/26053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/236"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=26053"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/26053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=26053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=26053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=26053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}