Java Considerations for Containerization

Running your application on virtual machines is now a thing in the past and by now most organizations have either already switched to container-based environments to run their applications or are planning to switch to a containerized environment. This article will attempt to give some insight onto how the Java memory-based aspects should change when one is planning to move their Java application to containers.

Extracting Private Key from Java KeyStore (JKS)

I've been working with the AS2 Protocol and the AdroitLogic AS2Gateway for quite some time now and hence playing with JKS has been a must. One of the tricks which were required from time to time was extracting the private key and public key (certificate) from Java KeyStores. In this blog post, we'll go through … Continue reading Extracting Private Key from Java KeyStore (JKS)

as2 protocol for b2b integration

Message Signing & Encryption for AS2 Protocol in Java

The main idea of the AS2 protocol defined in the RFC 4130 is on how we can exchange structured business data securely using the HTTP transfer protocol. In one of the previous posts on AS2, we looked at an overview of the AS2 (Applicability Statement 2) protocol and why it wins over the other B2B … Continue reading Message Signing & Encryption for AS2 Protocol in Java

Implementing an Embedded ElasticSearch Server

Hi all, recently I added an embedded ElasticSearch server for the upcoming release of  AdroitLogic UltraESB. Embedded ES Server will be useful when a large ES cluster is not required and also for ES integration tests. Let's have a look at the code. It's actually very simple. "path.conf" will contain the elasticsearch configuration yaml file … Continue reading Implementing an Embedded ElasticSearch Server

Reverse Words in a String

Reversing words in a string is a popular coding interview question. Here what is meant by reversing words in a string is something like this. Input string:     "My name is rajind and i am a believer" Output string:  "believer a am i and rajind is name My" Doing this in-place without use additional space … Continue reading Reverse Words in a String

WiFi Information Extraction Java

Hello everyone, I was recently involved in a wireless networking project where we had to develop a student response system. In that I had to extract certain WiFi related information such as list of available SSIDs, connected SSID, IP address and Subnet Mask Java doesn't allows us to directly get that low level information. Therefore … Continue reading WiFi Information Extraction Java

Solution to Senate Bus Problem

This is Java Implementation of the Semaphore based solution for Senate Bus Problem https://github.com/Rajind/SenateBusProblem The Senate Bus Problem (From The Little Book of Semaphores by Allen B. Downey) This problem was originally based on the Senate bus at Wellesley College. Riders come to a bus stop and wait for a bus. When the bus arrives, all … Continue reading Solution to Senate Bus Problem