Collection: It is an object that represents a group of objects.

Java Collections Framework is all about how we store group of objects and manipulate them.

It reduces the programming effort and increases performance while providing high interoperability.


This post guides how to create a maven project from the scratch and integrate it with TestNG. If you are a beginner at test automation, this post may help you.

Setting up Eclipse

  1. Download Eclipse from here, make sure you select Eclipse for Java Developers.
  2. Make sure you install testng plugin for Eclipse…


Paxos algorithm is used to achieve consensus among a distributed set of computers that communicate via an asynchronous network.

We will understand the Paxos Algorithm by taking a simple problem such as detecting Prime Numbers in a distributed environment.

In order to start the consensus, first, we need to have…


This blog post explains the end to end implementation of the Bully Algorithm which is a leader election algorithm in Distributed Systems.

What is a Distributed System

A distributed system is a collection of independent computers that appears to its users as a single coherent system.

These multiple nodes are physically separate but linked with…


Assume that your actual Rest API gets a number of identical hits, but actually that Rest Endpoint expects only one hit in order to proceed with the rest of the work!

How to handle this?

In Python, we can handle the scenario by developing a proxy.

Assume that our actual…


We can invoke APIs using a request payload or sending them in the URL as query parameters.

We can do several operations using the property mediator with the query parameters.

We can check this using a simple property as below. Assume my URL is as below. We can check if…


Using WSO2 Enrich mediator

Assume we need to copy a whole message context to a property for further use. As an example, if we use Amazon SQS Connector, we may need that message to send it to a Queue as the message body, but we need to pass it as…


By default XPath 2.0 functions are disabled in WSO2 EI. In this post, we will look at how can we use them in EI 6 and EI7.

  1. Download WSO2 EI 7 from here.
  2. Go to <PRODUCT-HOME>/conf/deployment.toml file and add the following.
[mediation]
synapse.enable_xpath_dom_failover="true"
  1. Download WSO2 EI 6 from here.
  2. Go…


We can build messages via sending parameters in the URL or as a payload as a POST request. In both ways, we can build a customized message using Payload Factory.

  • Start the SimpleStockQuote Service since we use this as our backend.

Starting SimpleStockQuote Service

  1. Download WSO2 EI 6.6.0 …


This tutorial guides you on how to expose the data in a CSV file as a data service using WSO2 Integration Studio and WSO2 Micro Integrator.

Picture Courtesy: Lynda.com

Creating the Data Service using WSO2 Integration Studio

  1. Download and install the WSO2 Integration Studio from here.
  2. From the Getting Started page, you can select Create Data Service Project in the Data…

Isuru Uyanage

Senior Software Engineer — QA at WSO2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store