carbon

How to Enable Asynchronous Logging with C5

In this post we are going to explore on how to enable asynchronous logging on C5 based servers. More on asynchronous logging can be found here. 1. Copy the disrupter dependency to the /osgi/plugins folder. You can get the disrupter OSGi bundle from here. 2. Edit launch.properties the /bin/bootstrap/org.wso2.carbon.launcher-5.1.0.jar and add the disrupter jar to …

How to Enable Asynchronous Logging with C5 Read More »

MSF4J :WSO2 Microservices Framework for Java to be Unleashed

WSO2 MSF4J Quick Start Guide WSO2 recently started implementing a Micro Services Server and finally it will be available as a Micro Services Framework 4 Java. In this post we are going to learn and understand how fast you can write a Micro service in a couple of steps. So lets get start then.Prerequisites.1. JDK …

MSF4J :WSO2 Microservices Framework for Java to be Unleashed Read More »

WSO2 Carbon Kernel 5.0.0 – Milestone 05 Released!

We are pleased to inform you the 5th milestone release of Carbon Kernel 5.0.0 is now available to download from here. Source and Tag Location for this release is available here. Carbon 5 [C5] is the next generation of WSO2 Carbon platform. The existing Carbon platform has served as a modular middleware platform for more …

WSO2 Carbon Kernel 5.0.0 – Milestone 05 Released! Read More »

[WSO2] Adding tenants using Admin Services – Sample Code

Adding tenants using admin services is straight forward. You have to use two admin services. 1. AuthenticationAdminService2. TenantMgtAdminService The  AuthenticationAdminService is used to authenticate the user and get the session.Below is a sample code for adding a tenant 1 2 3 4 5 6 7 8 9101112131415161718192021222324252627282930 public class TenantMgtAdmin { private static final String …

[WSO2] Adding tenants using Admin Services – Sample Code Read More »

Adding a custom proxy path for WSO2 Carbon 4.3.0 Based Products

The objective of this article is to give a comprehensive guide on, custom proxy paths, why we need a custom proxy path and how to enable a custom proxy path for WSO2 products. This feature was introduced in Carbon 4.3.0 release. Custom proxy paths Custom proxy path is used when mapping a proxy url pattern …

Adding a custom proxy path for WSO2 Carbon 4.3.0 Based Products Read More »

[WSO2] Sample Web Application to Demonstrate Insertion, Retrieval and Deletion of a resource to Registry

Here is a sample web application to test Insertion, Retrieval and Deletion of a  resource to Registry. Here is the sample servlet code. Github Link package org.wso2.carbon.test;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.wso2.carbon.context.CarbonContext;import org.wso2.carbon.context.RegistryType;import org.wso2.carbon.registry.api.Registry;import org.wso2.carbon.registry.api.Resource;/** * Servlet implementation class RegistryTest */@WebServlet(“/RegistryTest”)public class RegistryTest extends HttpServlet { private static final long serialVersionUID = …

[WSO2] Sample Web Application to Demonstrate Insertion, Retrieval and Deletion of a resource to Registry Read More »

Create a WSO2 Worker-Manager Cluster in Just 2 Minutes !

I’ve been working on an application(WSO2 Cluster Wizard) which creates a Worker-Manager Separated cluster for a given WSO2 Product. The objective of this application is to reduce the time spent on creating clusters in developers/testing local machines. Though puppet scripts can automate the process AFAIK, no one uses puppets to create clusters in their local …

Create a WSO2 Worker-Manager Cluster in Just 2 Minutes ! Read More »

Enable Java Security Manager for WSO2 Products

Hi everyone, in this post we are going to explore on how to enable java security manager for WSO2 products. For this we need to sign all the jars using the jarsigner program. For the learning purpose I will use the wso2carbon.jks java key store file, which ships default with WSO2 products. Special thanks goes …

Enable Java Security Manager for WSO2 Products Read More »