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

Share the knowledge

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

Share the knowledge

Apache Camel – How to remove some or all exchange headers

Posted on April 22, 2016September 25, 2021 By sastrija

While dealing with Apache Camel, we normally comes with scenarios where we have to send only message body, but exchange header have lots of unwanted data. In this case we can remove all headers in one single method call. In some other scenarios, we have to remove all headers except…

Read more

Simple “Hello World” application using Apache Camel

Posted on February 5, 2016September 25, 2021 By sastrija

I’ve learned this API few months back, and the initial days with this API was a real struggle. Now I’ve better grip on this API, and thought of sharing my experience here so that anyone comes across same situations as mine can make use of this. This article will cover preparing…

Read more

Null check in camel routes

Posted on January 5, 2016September 25, 2021 By sastrija

In camel routes, null check of body content can be done as given below: If you are doing null check on a exchange header, this can be done using: Similarly you can do null check on exchange property using: We can use .isNotNull() to negate the above .isNull() check.

Read more

Apache Camel – Message History

Posted on December 16, 2015September 25, 2021 By sastrija

Message history in Apache Camel is available since camel 2.12. Message history of a message will help to trace out the list of all applications that the message passed through since its origination. When a message is sent to an endpoint, that endpoint information is stored in message history.Message history…

Read more

List of JavaDoc tags

Posted on February 25, 2015September 25, 2021 By sastrija

Java support different JavaDoc tags for documentation. Refer below table for details. Tag Available from Use @author 1.0 To mention author name of the class @deprecated 1.0 To notify that a given API is no longer supported and shouldn’t be used anymore @exception 1.0 To add Throws subheading to the…

Read more

JAXBContext and Thread safety

Posted on February 21, 2015September 25, 2021 By sastrija

JAXBContext objects are thread safe, but initializing aΒ JAXBContext object is time consuming. This can affect the performance of applications. So we should avoid creating same JAXBContext object multiple times. Solution to address this issue is to use singleton pattern to initialize the JAXBContext object and reuse it. Now we can…

Read more

How to resolve maven dependency conflicts

Posted on July 8, 2014September 25, 2021 By sastrija

When dealing with lots of maven dependencies we normally ends up with conflicts. This can be due to different versions of same library in classpath. In this case we have to manually identify the exact maven dependencies with which this library is added. Maven provides an option to list all the…

Read more

iframes in iPad

Posted on July 18, 2013August 14, 2024 By sastrija

iframe is behaved differently in iPad compared to other web browsers in different platforms. iframe issue in iPad can be resolved by adding a wrapper and CSS styling. A demo of this solution can be viewed from the following link: http://demo.sastrija.com/iframe/

Read more

HTML form tag and new line

Posted on August 2, 2012September 25, 2021 By sastrija

Sometimes the browser will display a new line character near a form tag in HTML. This can be fixed using below CSS.

Read more

Setting HTTPS certificate trusted in Java

Posted on July 12, 2012September 25, 2021 By sastrija

After digging a lot in web, I found the following snippet is useful in some scenarios, where we tries to connect to a HTTPS URL from our java code. Warning! This solution will void the real purpose of HTTPS by disabling securities. So use it cautiously

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