Pages

Wednesday, January 28, 2015

WSO2Con EU 2015

WSO2Con brings together architects, directors, and CxOs who desire to gain insights into creating a connected business. The WSO2Con EU 2015 agenda will showcase and share technology developments, architecture guidelines and best practices to compete in a connected world using the WSO2 enterprise middleware platform.










You can find more information from here

Monday, January 26, 2015

Install XACML Engine in WSO2 API

This article explains how to install XACML engine in WSO2 API Manager.

Prerequisite
WSO2 API Manager 1.5 or above

Steps
1. Download and unzip WSO2 API Manager
2. Start WSO2 API Manager.
3. Install XACML feature in API Manager.

Goto http://localhost:9443/carbon and login to management console. Once inside the admin console, select the ‘configure’ tab from the tabs available on the left-hand side. Inside the ‘configure’ menu you would find the features icon as shown below.










Inside the features page, select the repository management tab and click on the ‘add repository’ icon











Add the following repository details in the ‘Add Repository’ page.
Name – Turing
Once the repository is added, click on the ‘Available Features’ tab. Select the newly added repository and un-tick the ‘Group features by category option’ and click on ‘Find features’ button.

Select following two XACML features from the search list and install

Follow the installation flow and install the XACML features. After the installation is completed restart WSO2 API Manager.

Sunday, January 11, 2015

Remote debug in Tomcat

As developers we always need to debug the application, Please see below the simple steps to enable remote debug in apache tomcat. Here I am using Mac OS X. You can use same steps in Linux environment.

1. Open Terminal window and Set CATALINA_OPTS environment variable. Execute following command.

export CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,address=1043,server=y,suspend=n"


2. Goto <Tomcat_home>/bin and execute below command.

./catalina.sh run

3. Open required project from IntelliJ IDEA. (You can use other IDE such as Eclipse)

4. Go to Run->Edit Configurations


4. Add Remote debug by Clicking + and Remote


5. Change debug port to 1043 and click Apply and Debug


Thats all, you can add required breakpoint and debug the application.

Cheers. Hope this will help you all.



Troubleshoot WSO2 products

Troubleshooting is something key thing software products should have both in production and development stage. All WSO2 product has debug log facility to help developers to understand the exact problem.

Steps to enable debug log

1. Edit log4j.properties file which located in <IS_HOME>/repository/conf directory.

2. Add following entry to enable debug logs for all component in the product.

log4j.logger.org.wso2=DEBUG

3. Sometime you want to enable debug log in specific component, then you can the entry as follows.

log4j.logger.org.wso2.carbon.user.core=DEBUG

This will enable all logs related to user core component.

4. Restart the product.


Hope this will help you.