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.
Tag: Java
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)
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
Presentation on Spring Framework
Hi all, Recently I did a session for a set of QA engineers at work on “Introduction to Spring Framework”. Thought of sharing it here. Cheers! 🙂 ~Rajind Ruparathna
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
The Maximum-Subarray Problem
What is meant by the maximum sub-array problem is that we want to find the non-empty, contiguous sub-array of an array whose values have the largest sum. Following is a divide & conquer solution implemented for it using Java language. ~Rajind Ruparathna
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