Hacking life

"You cannot connect the dots by looking forward"

Create a proxy in WSO2 ESB using admin services.

Sep 15, 2012 · tech · 1 minute read · Comments

Do you want to know how to create a proxy in WSO2 ESB without using UI. Here is a sample code that will help you to understand how to use an admin service to achieve the task. package org.wso2.test; import org.apache.axis2.AxisFault; import org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException; import org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub; import org.wso2.carbon.proxyadmin.stub.types.carbon.ProxyData; import org.wso2.carbon.utils.CarbonUtils; import java.rmi.RemoteException; public class TestProxy { public static void main(String[] args) throws RemoteException, ProxyServiceAdminProxyAdminException { String userName = "admin"; String password = "admin";

Read On →

How to create a Data service from Google Spread sheet

Jul 12, 2012 · tech · 3 minute read · Comments

Introduction Google Spread sheets are popular tool and used in businesses heavily. Imagine a usecase where you need to collect data from various people and then use that data in your applications. Most of the time 5 minute work would be to create a Google Spread sheet and design a form to share among the people to collect the data. Once you have the collected data you may need to use them in your applications.

Read On →

Cassandra GUI 2.0 - Making things a little bit easier

Jun 18, 2012 · tech · 2 minute read · Comments

Update (2014 October 31st) You can download WSO2 Storage server  1.1.0 which ships Cassandra explorer and many interesting tools to manage storages. Please follow the following links for documentation to use Cassandra Explorer. Download the product Extract the binary and run the product. (See "Starting the server" after extracting ) Documentation about Explorer ======================================================================== Cassandra GUI evolved from its first version and new version includes bug fixes and enhanced features.

Read On →

Cassandra Explorer - GUI for Cassandra

May 12, 2012 · tech · 2 minute read · Comments

Please go to following url for the newest version. WSO2 products can manage a Cassandra Cluster using Cassandra feature.[1]  (No need to follow the instructions to setup cassandra I have added a pre installed version [2]) If you have a Cassandra cluster i am sure you have the problem of viewing the data instantly. Cassandra CLI is one of the tools but it would be easier if it has a nice UI and would more convenient for administrators.

Read On →

How to change default temporary folder in WSO2 carbon based products

Mar 11, 2012 · tech · 1 minute read · Comments

In wso2 carbon based products default temporary folder is {product_home}/tmp.  If you need to change that location to a different location here is the way to do it.  You can change the location by changing the locations in start up scripts.  1) In Linux (/bin/ change following parameter’s location.“$CARBON_HOME/tmp”  2) In Windows (/bin/wso2server.bat) change the following parameter’s location.“%CARBON_HOME%\tmp”

Read On →

How to call MySQL stored procedures from WSO2 Data Services Server

Mar 5, 2012 · tech · 2 minute read · Comments

 Stored procedures allows you to expose pre defined queries as an api allowing users to consume them in a much faster way. Requirements. MySQL Database server WSO2 Data Service Server (DSS) 2.6.3 MySQL JDBC driver Note: <DSS_HOME> is the root folder of your unpacked DSS server. 1.) Unpack WSO2 DSS and drop MySQL JDBC driver in <DSS_HOME>/repository/componets/lib folder. 2) Start the server using the start script <DSS_HOME>/bin/  (In linux or wso2server.

Read On →

Adding JMS transport for WSO2 Data Services Server

Mar 1, 2012 · tech · 1 minute read · Comments

Pre requisites 1) WSO2 DataServices Server 2)Apache ActiveMQ  1) Configuring JMS transport.After extracting Data Services Binary navigate to {DSS-HOME}/repository/confOpen axis2.xml in your editorUncomment the following sectionfor Transport Listner<!--Uncomment this and configure as appropriate for JMS transport support, after setting up your JMS environment (e.g. ActiveMQ)--> <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"> <parameter name="myTopicConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">TopicConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">topic</parameter> </parameter> <parameter name="myQueueConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>

Read On →

Big Data : A Quick introduction

Feb 24, 2012 · tech · 2 minute read · Comments

What is Big data? This is one of the buzz words in today's world and has gained the attention of many industries. By looking at the name one might think it as data in "BIG" format. But there is much more than that. Today the rate of data generation is so huge and there are several dimensions that data evolves. Big data spans three dimensions: Volume, Velocity and Variety. " Volume – Big data comes in one size: large.

Read On →

How to kill a process running on a known port

Feb 19, 2012 · · 1 minute read · Comments

If you know a process running on a specific port and need to kill the process ?here are the steps.1) Find the process ID. (Here which runs on 9443)?12345fuser -n tcp 9443orlsof -w -n -i tcp:9443Then you have the process ID. Kill the process with (Here ID = 6147)?1kill -9 6147

Read On →

How to add Findbugs and Checkstyle plugins to your maven3 build

Jan 14, 2012 · tech · 2 minute read · Comments

Findbugs and Checkstyle are two awesome tools that help to maintain the quality of your code discovering anti patterns or bad smells.Normally we can run those two tools with the help of IDE but there are possibilities that developers may be ignorant about them.So how about adding them to the normal maven build so developers are forced to correct their mistakes. There are different level of sympathetic levels that you can have  with this integration.

Read On →