Monday, April 28, 2014

Change the delimiter in mysql


To deploy the procedure via terminal in mysql you need to change the delimiter! So this is a sample step that you could follow to do it!

DELIMITER //

CREATE PROCEDURE ChangeInventory(in InventoryID INT, in Quantity INT) 
BEGIN 
UPDATE INVENTORY SET IN_QTY = Quantity WHERE IN_P_ID = InventoryID; 
END // 

DELIMITER ;

Wednesday, April 16, 2014

How to list the admin Service in WSO2 carbon Products

If you want to find out the admins service that available in wso2 carbon product. with two steps you can find it out with out any problem.

Step 1
Start the wos2 server with OSGI console


Step 2
Once the server is started type the "listAdminServices" command in the osgi  console to list out the admin service.


Monday, April 7, 2014

Quick Note on How to install java in Ubuntu/Mint

Good old days we had the simple way to install the sun java in our Ubuntu machines! Since the oracle has taken the proprietorship of Oracle java(aka sun java) and due to Oracle's software redistribution policy it it not simple as it is to do the "apt-get install"

Nevertheless there are some good documents that showcase the way to install the java with out any struggle :).

First terminal will install the oracle java for you and second terminal command will set the install java as defualt java version.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java6-set-default



[1] http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
[2] https://help.ubuntu.com/community/Java