In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express.
It makes the language “sweeter” for human use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer.
A construct in a language is “syntactic sugar” if it can be removed from the language without any effect on what the language can do: “functionality” and “expressive” power will remain the same.
Following are some of the syntactic sugars used in JAVA programming languages,
In the modern era, Enterprise Integration Solution development requires service chaining with Cookie handling.
WSO2 Enterprise Integrator is a great platform for developing and deploying complex integration solutions orchestrating different backend services.
In this post we are going to explore how we can invoke backend services extract response cookies and pass it on to sub-sequent requests to maintain a smooth mediation flow.
Requirement for Cookie Handling in Mediation Flows:
In this post let us discuss a scenario where a missing semicolon error is interpreted as a different error by the compiler in a free-form programming language like C.
Free-form language is a programming language in which the positioning of characters on the page in program text is insignificant.
Program text does not need to be placed in specific columns as on old punched card systems, and frequently ends of lines are insignificant. Whitespace characters are used only to delimit tokens, and have no other significance.
In free-form languages the end of a statement is detected by the compiler based…
In this post let’s explore how we can setup multiple github (github.com) accounts to seamlessly perform git actions without switching between accounts and re-authenticating.
Consider you have two private github accounts hosted in github.com.
In order to perform git operations (pull, push, clone, etc) on repositories hosted under one account you need authenticate using the credentials of that account, and each time you need to switch to the other account (on the same git provider) you need to authenticate again. This hinders the productivity and workflow.
Hmm… How can we overcome this and seamlessly work with repositories hosted…
When using git commands via Terminal, Git will sometimes need credentials from the user in order to perform operations; for example, it may need to ask for a username and password in order to access a remote repository over HTTP/HTTPS.
“gitcredentials” module is used to request these credentials from the user as well as stores these credentials to avoid inputting these credentials repeatedly.
Inputting the same credentials over and over can be a frustrating experience for the user.
Git provides two methods to reduce this annoyance:
Carrying out more than one tasks at a time in a pseudo-parallel fashion.
Concurrency is when multiple sequences of operations are run in overlapping periods of time.
Refer to the link for further details.
According to Wikipedia,
Multithreading is the ability of a CPU (or a single core in a multi-core processor) to provide multiple threads of execution concurrently, supported by the operating system.
Refer to the link for further details.
Consider a scenario where multiple threads/processes (with same scheduling priority) waiting for a particular lock Or an I/O event.
Once the lock is released (on a shared object) Or…
In this blog let us explore how we can read System properties from a property file (stored in the system) and pass them as arguments to the Integration Studio’s Embedded MI runtime.
When using a General WSO2 MI Server (not the embedded runtime) we can point the properties file to the MI Server by appending the following argument to the micro-integrator.bat/ micro-integrator.sh file,
MI will read the system properties from the properties file and they can be referred in the mediation flow.
To do the same with the Embedded runtime in the Integration Studio follow the below steps,
In this blog let us explore how we can seemlessly share Integration Projects across multiple developer environments using Git and WSO2 Integration Studio.
One commonly raising requirement in large scale Integration Projects is the need to share the partial/complete Project artifacts with other developers. So that the other developers can continue the work from where it was left Or work on another part of the project in parallel.
WSO2 Integration Studio is a tool to design, develop, debug, test and deploy your integration flows. It is a drag-and-drop graphical development environment for WSO2 Enterprise Integrator. …
Let us start by taking some basic examples, and then explain the syntax needed to construct and understand Regular Expressions in further detail.
Let’s create a RegExp object, “re”, that matches any string “S” that begins and ends with the same vowel.
The length of string S is >= 3.
String S consists of lowercase letters only (i.e., [a-z]).
Currently, the WSO2 Product Docker images available in the Docker registry are prepackaged with the following artifacts,
2. WSO2 Kubernetes membership scheme artifacts.