Spring Boot - Introduction

You must have heard about the Spring framework that is one of the great frameworks to develop the enterprise-grade application. Before Spring framework, these kinds of the application had been developed in JEE platform using the EJB and Java Application Servers like JBoss, Weblogic, WebSphere etc. Spring framework is the integration framework which gives us the facility to write the business solution using its core modules where spring framework manages your objects and their dependencies and you need to just focus on writing the business logic. 

Mule Routers

Routers in Mule ESB play major roles to control the workflows. The router takes input, do the analysis and take the decision that will decide the next destination for the message. It is similar to the control statements in java language like if, if-else, switch etc. In Mule platform, they created many routers already to save the time of the developer while create the workflow. 

mule choice router

Tags

Pragmatically Spring MVC example without using XML (Pure java based configuration)

After we have the Servlet 3 version, we have the option to ignore the web.xml file in our java based web application. Similarly, Spring gives us the option to ignore its XML based configuration in new releases. So, you can create the Spring MVC application without having any xml file in it. See the Example.

Here the java code to create the Web application initializer. Implementation of WebApplicationInitializer interface gives the provision to provide the configuration that would have in web.xml file

Tags

Mule 3 Payload

Payload it the data recevied or set in the flow. If flow is hit by some external source, the submitted data found in the payload and you can set the payload manually in the flow as well.

The type of the payload depends on the source that is generating the payload. For example, if you use the JSON to Object Transformer, the payload type would be the type of the class you specified as return class of the component Josn to Object transformer. The payload could be HashMap object in which you retrives the data by using the key in the get method.

Tags