Skip to content
𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ

Share the knowledge

𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ

Share the knowledge

Angular – Access webpage from another device in same network

Posted on May 3, 2018September 20, 2021 By sastrija

While developing a webpage, we will need to test it from different devices with different display sizes. By default the angular applications which runs throughΒ ng serveΒ will not be available from outside the device where it runs. If you need to access it from another device in the network, run it…

Read more

Installing MongoDB in Windows OS

Posted on January 26, 2018September 20, 2021 By sastrija

Note: Below steps were prepared based on the installation of MongoDB-3.6.0(64 bit) in Windows-10 OS. MongoDB can be downloaded from their official website. You can either download msi file which provides step by step guide to install or choose zip file which doesn’t need any installation.

Read more

Apache Camel – Null safe operator for ‘simple’ statement

Posted on April 15, 2017September 20, 2021 By sastrija

In Apache CamelΒ we use “simple” statement to extract values in a pojo. For example if we have a pojo “Employee” having “employeeId” as one of the attribute,Β and employee object is available in camel exchange body, we can retrieve the employee id with following statement. simple(“${body.employeeId}”); If by chance body is…

Read more

How to set execution environment and target environment JRE in maven projects

Posted on April 11, 2017September 25, 2021 By sastrija

By default when we create a maven project, it is configured to use JRE5 and will try to find a compatible JRE/JDK. Hence If you are using eclipse IDE, you will find below warning in “Markers” tab. If your source and target JDK is other than JDK5, then you can…

Read more

Apache Camel – Index of Map or List from camel routes

Posted on March 15, 2017September 20, 2021 By sastrija

From inside a camel route we can retrieve the value by using its index easily. To retrieve an item from a list by using index, use below code which will reads the list object in the exchange body and retrieves the value in position 2. simple(“${body[2].name}”) To retrieve an item…

Read more

Check the size of a List/Map from Apache camel route

Posted on March 6, 2017September 20, 2021 By sastrija

We can check the size of a java.util.ListΒ using below code. .choice() .when(simple(“${body.size() > 10}”)) .log(LoggingLevel.INFO, “List size is greater than 10”) .when(simple(“${body.size() > 0}”)) .log(LoggingLevel.INFO, “List size is greater than 0”) .otherwise() .log(LoggingLevel.INFO, “List is empty”) .endChoice() Same logic can be used for other collection objects in Java. Please not…

Read more

Validating the class of Object available in camel exchange body

Posted on February 22, 2017September 20, 2021 By sastrija

In camel routes, we can validateΒ the class of object available in Camel exchange body. It can be achieved by using below code: CamelContext context = new DefaultCamelContext(); try { context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from(“direct:validateInputObject”) .choice() .when(simple(“${body} is ‘java.util.List'”)) .log(LoggingLevel.INFO, “Body contains java.util.List object”) .when(simple(“${body}…

Read more

Logger in Apache Camel routes

Posted on January 14, 2017September 25, 2021 By sastrija

Yes, we can log messages from Camel route, and can define different log levels for each log message. In order to add logger, first you need to add required additional dependencies to your application. Then add log4j.properties or log4j.xml to the application classpath. log4j.properties Add below line to your properties file to enable debugging…

Read more

Steps to configure and run maven web application using tomcat

Posted on September 9, 2016September 20, 2021 By sastrija

For maven web application, it can be run in tomcat server without installing tomcat server locally!! Yes, its true!! Here maven provides a plugin for tomcat instance, which will used to deploy and run the web application using a simple maven command “tomcat7:run”. For this, first we have to configure…

Read more

Maven Web Project – Deploy using embedded tomcat server

Posted on August 16, 2016September 25, 2021 By sastrija

Maven provides support for running web applications in embedded tomcat server. Use the following steps to configure local tomcat server and run it using maven command: Add maven dependency for tomcat embedded plugin to web project 2. Use following maven command to run the application in embedded tomcat server

Read more
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next
©2026 𝓒π“ͺ𝓼𝓽𝓻𝓲𝓳π“ͺ | WordPress Theme by SuperbThemes