Ubuntu Environment Preparation as web server

Install JAVA


sudo apt-get purge openjdk*

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer

Install  Apache + Tomcat



sudo apt-get install apache2

sudo apt-get install tomcat7

sudo apt-get install libapache2-mod-jk

sudo vim /etc/tomcat7/server.xml

–un comment the line below

<Connector port=”8009″ protocol=”AJP/1.3″ redirectPort=”8443″ />

sudo vim /etc/apache2/workers.properties

# Define 1 real worker using ajp13


# Set properties for worker (ajp13)




sudo vim /etc/apache2/mods-available/jk.conf

change the JkWorkersFile property to /etc/apache2/workers.properties

sudo vim /etc/apache2/sites-enabled/000-default

JkMount /tomcat-demo* worker1

Install MySQL



sudo apt-get install mysql-server

vim /etc/mysql/my.cnf

bind-address            = 192.XX.X.X

sudo service mysql restart

TOMCAT Detail:


Tomcat Path: cd /var/lib/tomcat7/webapps


Policy and Control Charging Architecture


The core flow of PCC is on Gx protocol

PCRF will tell PCEF what to install trough Gx CCR or Gx RAR.

Develop Portal using liferay I-Develop Portlet

Lets begin on  how to build a portal with liferay. Familiarize with below term while develop portal:

  1. Portlet.
  2. Theme
  3. Hook
  4. Layout

Capability on develop those four components is necessary in order to build a portal.

I assume you familiar with Java in order to develop portlet while 3 others component is good to have but not mandatory.


Install it liferay eclipse plugin(http://releases.liferay.com/tools/ide/latest/stable/)

Download liferay SDK  and extract it

Download liferay tomcat bundled (6.2 CE edition) and extract it

Configure Eclipse for SDK liferay and tomcat bundled refer to image below for this step



Now let’s rock by creating a project for a portlet

Create new project (we will use ant instead of maven since its easier.



The generated code will be like this


Start to deploy your first portlet




Start Server




Check if Ojolali portlet is deployed


In view mode after added into a page looks like below





Now you can start build your own portlet. :)

The source code for article can be downloaded from



Bash Script Validation



if [ $# -lt 3 ] ; then
echo “Usage: $0 username password true/false”
exit 1

Validate and show if the param at least has 3 params

Waht about this ?

function printUsage {
echo "Usage: $0 "
exit 1

if [ $# -lt 4 ]; then

Exposing Simple REST Service

Exposing Simple REST Service.

Mule Studio, adding Community Edition Lib

Mule Studio by default is using


In order to install Community Edition following is the step:

1.  Click Help=>Install New Sofware.

2. Shoose All Available Sites

3. Click in tick box for MuleStudio Community Runtimes

4. Click Next keep continue :)


Here is the screenshoot that might help you guys






Happy Muleeeee

Mule ESB

Imagine you are integrating one app to another app and more app is there. The integration point is hetero gen one to another application. One application provide flat file, while the other use web service, another one provide DB read  only (view) for the integration point (we called it end point).

So, to handle this kind of situation two approach can use

1. Develop application and do formatting as per integration point.

2. Use ESB to do handle this.


Mule is one of the open source ESB dan provide community Edition and Enterprise Edition.

Here is the sample that I made in Mule Designer to integrate .Net (REST API) endpoint with Java (cxf API).


Mule ESB

Using Community Edition


Get every new post delivered to your Inbox.