<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CEMNQnw8cCp7ImA9WhRUGU0.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866</id><updated>2012-01-29T21:48:13.278-08:00</updated><category term="self servicing" /><category term="xml" /><category term="Stratos" /><category term="Service Life Cycle" /><category term="phpMyAdmin" /><category term="media types" /><category term="mySQL" /><category term="mime" /><category term="human readable" /><category term="webservices" /><category term="gadgets" /><category term="security" /><category term="ESB" /><category term="Mashup Server" /><category term="G-Reg" /><category term="cApp" /><category term="selenium" /><category term="Carbon Studio" /><category term="WSO2 BAM" /><category term="cloud" /><category term="SSO" /><category term="jUnit" /><category term="WSO2" /><category term="user store" /><category term="multitanancy" /><category term="App Server" /><category term="agile" /><category term="websphere" /><category term="data file" /><category term="waterfall" /><category term="eclipse" /><category term="wso2 cabon" /><category term="stubs" /><category term="Gadget Server" /><category term="selenium rc" /><category term="Identity Server" /><category term="database" /><title>Yumani's Blog</title><subtitle type="html">bit about web services, middleware &amp;amp; SOA ....</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://yumani.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/YumanisBlog" /><feedburner:info uri="yumanisblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;AkIHQXs6fCp7ImA9WhRXFEk.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-4739541418249756122</id><published>2011-12-20T01:59:00.000-08:00</published><updated>2011-12-20T22:22:10.514-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-20T22:22:10.514-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mime" /><category scheme="http://www.blogger.com/atom/ns#" term="human readable" /><category scheme="http://www.blogger.com/atom/ns#" term="G-Reg" /><category scheme="http://www.blogger.com/atom/ns#" term="media types" /><title>Adding a human readable media type to G-Reg</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Adding a human readable media type is a new feature that will be available in the latest WSO2 G-Reg 4.1.1 packs.&lt;br /&gt;
&lt;br /&gt;
The use of this feature comes in when you need to name you media types using something that is more readable than a technical term. For an example say we have media types such as image/x-coreldrawpattern with .pat extension and chemical/x-vamas-iso14976 with .vms extension or &lt;br /&gt;
application/vnd.symbian.install with .sis extension.&amp;nbsp; It is really hard to remember these names.&lt;br /&gt;
&lt;br /&gt;
This difficulty can be eliminated using human readable&amp;nbsp; media types feature.&lt;br /&gt;
&lt;br /&gt;
Following is how to configure this feature.&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Open G-Reg-HOME/repository/conf/mime.types file. This will show you all the supported the mime.types.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Select a mime type which you need to be mapped to a name of your choice.&lt;/li&gt;
&lt;li&gt;Open G-Reg-HOME/repository/conf/mime.mappings file. This is where we are going to add the new name that we are going to use for the given mime type.&amp;nbsp; The new name you add in this file will map the extension given in the mime.type file.&lt;/li&gt;
&lt;li&gt;In mime.mappings file, copy the mime-type wanted to change and tab 5 times and type the custom name. See below for an example: line 20&lt;br/&gt;

&lt;pre class=bash name=code highlight=10&gt;
#
# Copyright 2005-2011 WSO2, Inc. (http://wso2.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This file is to define the human readable media type for a mime type. 
# Eg:- 
# text/plain                                      txt text
application/wsdl+xml                                  mywsdl

&lt;/pre&gt;

&lt;li&gt;Save and close the file.&lt;/li&gt;
&lt;li&gt;Restart the server.&lt;/li&gt;
&lt;/ol&gt;
Lets follow these steps to witness the adjustment :)&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Login to G-Reg admin console&lt;/li&gt;
&lt;li&gt;Navigate to Resource &amp;gt; Browse&lt;/li&gt;
&lt;li&gt;Select to add a new resource.&lt;/li&gt;
&lt;li&gt;Add a new resource of the type that you adjusted above. When you select the resource you will see the media type that you gave appear in the 'media type' field. (see image below)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-lgC3zVeFWCI/TvF04XZXmgI/AAAAAAAAAW0/nqbkpr7l9Zo/s1600/WSO2+Governance+Registry_1324444783803.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-lgC3zVeFWCI/TvF04XZXmgI/AAAAAAAAAW0/nqbkpr7l9Zo/s1600/WSO2+Governance+Registry_1324444783803.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-4739541418249756122?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/969_VOuG4ByjpjLQ8vG_xoX1ePs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/969_VOuG4ByjpjLQ8vG_xoX1ePs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/969_VOuG4ByjpjLQ8vG_xoX1ePs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/969_VOuG4ByjpjLQ8vG_xoX1ePs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/B7ZC5KNhaA0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/4739541418249756122/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/12/adding-human-readable-media-type-to-g.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4739541418249756122?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4739541418249756122?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/B7ZC5KNhaA0/adding-human-readable-media-type-to-g.html" title="Adding a human readable media type to G-Reg" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-lgC3zVeFWCI/TvF04XZXmgI/AAAAAAAAAW0/nqbkpr7l9Zo/s72-c/WSO2+Governance+Registry_1324444783803.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2011/12/adding-human-readable-media-type-to-g.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YAQHg9eCp7ImA9WhRRFk8.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-7430909637375121459</id><published>2011-11-29T19:49:00.001-08:00</published><updated>2011-11-29T19:52:21.660-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-29T19:52:21.660-08:00</app:edited><title>wso2.org article : Connecting WSO2 G-Reg to a secured &amp; confidential external user store</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
The previous blog post on 'Connecting WSO2 G-Reg to a secured &amp;amp; confidential external user store' was made an article in wso2.org after elaborating some steps to more detail and also doing a good technical review.&lt;br /&gt;
&lt;br /&gt;
Its available in &lt;a href="http://wso2.org/library/tutorials/2011/11/connecting-wso2-greg-secured-amp-confidential-external-user-store" target="_blank"&gt;here&lt;/a&gt; &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-7430909637375121459?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/64mruq04WTMfw3MTe21qVXeuDwU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/64mruq04WTMfw3MTe21qVXeuDwU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/64mruq04WTMfw3MTe21qVXeuDwU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/64mruq04WTMfw3MTe21qVXeuDwU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/QYEqEmd0cnM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/7430909637375121459/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/11/wso2org-article-connecting-wso2-g-reg.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/7430909637375121459?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/7430909637375121459?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/QYEqEmd0cnM/wso2org-article-connecting-wso2-g-reg.html" title="wso2.org article : Connecting WSO2 G-Reg to a secured &amp; confidential external user store" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2011/11/wso2org-article-connecting-wso2-g-reg.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEFQXw4eip7ImA9WhRXFEk.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-2376224274360374209</id><published>2011-11-18T02:18:00.001-08:00</published><updated>2011-12-20T22:23:30.232-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-20T22:23:30.232-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="user store" /><category scheme="http://www.blogger.com/atom/ns#" term="G-Reg" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Connecting WSO2 G-Reg to a secured &amp; confidential external user store</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
From Carbon 3.2.0 onwards we have an embeded LDAP user store which is accessible via port 10389 in default settings. The server also configurable to use LDAP to connect to an external user store. If we need this user store to be secured and confidential it need to be configured to connect via LDAPS.&lt;br /&gt;
&lt;br /&gt;
In this post I will be demonstrating how to connect WSO2 G-REg 4.0.0 to an external user store which will be accessed via secured transport (where the tracffic is transmitted  via secured transport).&lt;br /&gt;
&lt;br /&gt;
As pre-requisites we will need WSO2 G-REG 4.0.0 installation which you can download from here. Also we need Apache Directory Server which, we will be using as the LDAP server. You should also have JDK 1.5 or above installed.&lt;br /&gt;
&lt;br /&gt;
With pre-requisites ready, we simply have to follow the steps given below.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1:&lt;/b&gt; &lt;br /&gt;
Firstly you need to install WSO2 G-Reg 4.0.0 which can be downloaded from here. Extract the .zip file to a location of your preference. &lt;br /&gt;
&lt;b&gt;&lt;br /&gt;Step 2:&lt;/b&gt;&lt;br /&gt;
As I mentioned earlier also WSO2 G-Reg is already configured with an internal LDAP user store. In order to connect to an external user store we need to disconnet the existing connection. To achieve this we need to uncomment settings from usermgmt.xml and embedded-ldap.xml. These files reside in GREG_HOME/repository/conf folder.&lt;br /&gt;
&lt;br /&gt;
Lets do these changes like this.&lt;br /&gt;
in usermgt.xml comment the default user store manager configuration which is given like below.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="xml" name=code&gt;&amp;lt;UserStoreManager class="org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ReadOnly"&amp;gt;false&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ConnectionURL"&amp;gt;ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ConnectionName"&amp;gt;uid=admin,ou=system&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ConnectionPassword"&amp;gt;admin&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="passwordHashMethod"&amp;gt;SHA&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserNameListFilter"&amp;gt;(objectClass=person)&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserEntryObjectClass"&amp;gt;wso2Person&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserSearchBase"&amp;gt;ou=Users,dc=wso2,dc=org&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserNameSearchFilter"&amp;gt;(&amp;amp;amp;(objectClass=person)(uid=?))&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserNameAttribute"&amp;gt;uid&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="PasswordJavaScriptRegEx"&amp;gt;[\\S]{5,30}&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UsernameJavaScriptRegEx"&amp;gt;[\\S]{3,30}&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UsernameJavaRegEx"&amp;gt;^[^~!@#$;%^*+={}\\|\\\\&amp;amp;lt;&amp;amp;gt;]{3,30}$&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="RolenameJavaScriptRegEx"&amp;gt;[\\S]{3,30}&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="RolenameJavaRegEx"&amp;gt;^[^~!@#$;%^*+={}\\|\\\\&amp;amp;lt;&amp;amp;gt;]{3,30}$&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ReadLDAPGroups"&amp;gt;true&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="WriteLDAPGroups"&amp;gt;true&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="EmptyRolesAllowed"&amp;gt;true&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupSearchBase"&amp;gt;ou=Groups,dc=wso2,dc=org&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupNameListFilter"&amp;gt;(objectClass=groupOfNames)&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupEntryObjectClass"&amp;gt;groupOfNames&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupNameSearchFilter"&amp;gt;(&amp;amp;amp;(objectClass=groupOfNames)(cn=?))&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupNameAttribute"&amp;gt;cn&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="MembershipAttribute"&amp;gt;member&amp;lt;/Property&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/UserStoreManager&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
In embedded-ldap.xml you need to set "enabled" property in "EmbeddedLDAP" to false.&lt;br /&gt;
&lt;pre class="xml" name="code"&gt; &amp;lt;Property name="enable"&amp;gt;true&amp;lt;/Property&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3&lt;/b&gt;:&lt;br /&gt;
Now we need to enable configurations for the externanal LDAP server. But lets wait until we configure our user store as we still don't have those details with us.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 4:&lt;/b&gt;&lt;br /&gt;
Now we need to install Apache Directry Studio. You can download the .zip ditribution, unzip and use it. The other choice is to use the binary installer. In my case I used the binary installer. I was taken through an installation wizard which prompted me to set locations for the inatalltion, instances and where to keep the startup, who is the default user etc. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 5:&lt;/b&gt;&lt;br /&gt;
Lets enable SSL in ADS. you need to navigate to ADS_INSTANCE_HOME/default/conf/ and open server.xml. Here search for 'tcpTransport address' and check if SSL is enabled. It is enabled by default. If not you need to update with this.&lt;br /&gt;
&lt;pre class="bash" name="code"&gt; &lt;tcptransport address="localhost" enablessl="true" port="10636"&gt;&lt;/tcptransport&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 6:&lt;/b&gt;&lt;br /&gt;
In this setup I am going to use a signed certificate to use in our LDAPS communitcation. I will be using keytool to generate the required keystore and certificates.&lt;br /&gt;
&lt;br /&gt;
Since am going have my LDAP server setup with an SSL server certificate, I must obtain a signed certificate for the server. To achieve this I will be using java keytool and create a self signed certificate (a public/private key pair).&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="console"&gt; keytool -genkey -alias carbon_server -keyalg RSA -keystore carbon_server.jks -storepass xxxxxx -validity 730
&lt;br /&gt;
What is your first and last name?
&amp;nbsp; [Unknown]:&amp;nbsp; Yumani Ranaweera
What is the name of your organizational unit?
&amp;nbsp; [Unknown]:&amp;nbsp; QA
What is the name of your organization?
&amp;nbsp; [Unknown]:&amp;nbsp; WSO2
What is the name of your City or Locality?
&amp;nbsp; [Unknown]:&amp;nbsp; Colombo
What is the name of your State or Province?
&amp;nbsp; [Unknown]:&amp;nbsp; Western
What is the two-letter country code for this unit?
&amp;nbsp; [Unknown]:&amp;nbsp; SL
Is CN=Yumani Ranaweera, OU=QA, O=WSO2, L=Colombo, ST=Western, C=SL correct?
&amp;nbsp; [no]:&amp;nbsp; yes

Enter key password for &amp;lt;carbon_server&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (RETURN if same as keystore password):&amp;nbsp; 
Re-enter new password: &lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 7&lt;/b&gt;:&lt;br /&gt;
After this we need to update the LDAP server (apacheDS) configuration to use our keystore files. to do this navigate to ADS_INSTANCE_HOME/default/conf/ and open server.xml. Update "keystoreFile" in following segment;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="bash" name="code"&gt;
&amp;lt;ldapServer id="ldapServer"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowAnonymousAccess="false"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; saslHost="ldap.example.com"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchBaseDn="ou=users,ou=system"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxTimeLimit="15000"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxSizeLimit="1000"&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keystoreFile="/home/yumani/software/LDAP/apacheds-1.5.7_new/external_keystore/carbon_server.jks" &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; certificatePassword="secret"&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
After this restart Apache DS server. In my case will restart it via /etc/init.d (/etc/init.d/ldap restart;)&lt;br /&gt;
&lt;br /&gt;
After the restart we can verify the connections using an LDAP browser. Lets use ApacheDirectoryStudio-linux-x86_64-1.5.2.v20091211.
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 8:&lt;/b&gt;&lt;br /&gt;
WSO2 Carbon based products use Java Secure Socket Extension (JSSE) for SSL support. So we need to upgrade JAVA_HOME/jre/lib/security with JSSE provider. &lt;br /&gt;
&lt;br /&gt;
To ensure G-Reg trusts the certificate used by the LDAP server we must install them in G-REGs trust store. So lets export the certificate using keystore.&lt;br /&gt;
&lt;pre class="console"&gt;
keytool -export -keystore carbon_server.jks -alias carbon_server -file carbon_server.cer&lt;br /&gt;
Enter keystore password:&amp;nbsp; &lt;br /&gt;
Certificate stored in file &amp;lt;carbon_server.cer&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Then lets import this certificate to G-Reg's trust store like this:&lt;br /&gt;
&lt;pre class="console"&gt;
&amp;nbsp;keytool -import -file carbon_server.cer -alias carbon_server -keystore /home/yumani/Documents/support/320/JPMDEVSPRT-31/wso2greg-4.0.0/repository/resources/security/client-truststore.jks -storepass wso2carbon&lt;br /&gt;
Owner: CN=yumani, OU=qa, O=wso2, L=col, ST=western, C=sl&lt;br /&gt;
Issuer: CN=yumani, OU=qa, O=wso2, L=col, ST=western, C=sl&lt;br /&gt;
Serial number: 4eba06d3&lt;br /&gt;
Valid from: Wed Nov 09 10:21:31 IST 2011 until: Tue Feb 07 10:21:31 IST 2012&lt;br /&gt;
Certificate fingerprints:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MD5:&amp;nbsp; EB:23:58:74:3B:6A:1B:CC:26:D8:84:AE:D3:A5:AC:4D&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SHA1: 7F:73:3C:5B:BA:0B:B8:47:69:1E:12:5C:47:EB:D0:E9:C3:08:2E:AB&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Signature algorithm name: SHA1withRSA&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Version: 3&lt;br /&gt;
Trust this certificate? [no]:&amp;nbsp; yes&lt;br /&gt;
Certificate was added to keystore&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 9:&lt;/b&gt;&lt;br /&gt;
Now that we have configured the LDAP server we need to setup and add user entries to the directory server. The guide (http://fusesource.com/docs/broker/5.3/security/LDAP-AddUserEntries.html) will show you how to complete this task.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 10:&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
Once the user store is setup we need to configure user manager in WSO2 G-Reg to connnect to it. This is how you do that:&lt;br /&gt;
Enable following block in G-REG_HOME/repository/conf/usermgt.xml.&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--UserStoreManager class="org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager"&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ReadOnly"&amp;gt;false&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ConnectionURL"&amp;gt;ldap://localhost:10389&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ConnectionName"&amp;gt;uid=admin,ou=system&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ConnectionPassword"&amp;gt;secret&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="passwordHashMethod"&amp;gt;SHA&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserNameListFilter"&amp;gt;(objectClass=person)&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserEntryObjectClass"&amp;gt;inetOrgPerson&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserSearchBase"&amp;gt;ou=system&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserNameSearchFilter"&amp;gt;(&amp;amp;amp;(objectClass=person)(uid=?))&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserNameAttribute"&amp;gt;uid&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="PasswordJavaScriptRegEx"&amp;gt;[\\S]{5,30}&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="ReadLDAPGroups"&amp;gt;true&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="WriteLDAPGroups"&amp;gt;true&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="EmptyRolesAllowed"&amp;gt;false&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupSearchBase"&amp;gt;ou=system&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupNameListFilter"&amp;gt;(objectClass=groupOfNames)&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupEntryObjectClass"&amp;gt;groupOfNames&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupNameSearchFilter"&amp;gt;(&amp;amp;amp;(objectClass=groupOfNames)(cn=?))&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="GroupNameAttribute"&amp;gt;cn&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="MembershipAttribute"&amp;gt;member&amp;lt;/Property&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/UserStoreManager--&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
If you had user store configured as [1] you will need to update "UserSearchBase" property to include ou=users as well:
&lt;pre class="xml" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Property name="UserSearchBase"&amp;gt;ou=users,ou=system&amp;lt;/Property&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;b&gt;Final step:&lt;/b&gt;&lt;br /&gt;
Alright we have everything set, lets start WSO2 G-Reg server and acces the user store.&lt;br /&gt;
&lt;br /&gt;
Start carbon server as below;&lt;br /&gt;
wso2server.sh -Djavax.net.ssl.trustStore=/path/to/carbon/repository/resources/security/client-truststore.jks -Djavax.net.ssl.trustStorePassword=wso2carbon&lt;br /&gt;
&lt;br /&gt;
Access G-Reg admin console from https://localhost:9443/&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-38GuUIBzvio/TsY3qbiNgHI/AAAAAAAAAQ8/MS51vzS-FOo/s1600/user_store1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="http://3.bp.blogspot.com/-38GuUIBzvio/TsY3qbiNgHI/AAAAAAAAAQ8/MS51vzS-FOo/s640/user_store1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Login to the server using admin credentials (admin/admin) as specified in usermgmt.xml&lt;br /&gt;
&lt;br /&gt;
You may navigate to Configure &amp;gt; Users and Roles &amp;gt; Users and see that the user store is connected!!!&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-nkD7vn_VpP0/TsY3zPwsCOI/AAAAAAAAARE/pLRNKKs2Ji4/s1600/user_store2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="310" src="http://3.bp.blogspot.com/-nkD7vn_VpP0/TsY3zPwsCOI/AAAAAAAAARE/pLRNKKs2Ji4/s640/user_store2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-2376224274360374209?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wYrVywZBUPonJ8X-LMLwZI2xNKI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wYrVywZBUPonJ8X-LMLwZI2xNKI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wYrVywZBUPonJ8X-LMLwZI2xNKI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wYrVywZBUPonJ8X-LMLwZI2xNKI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/DrlWxj7BfI4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/2376224274360374209/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/11/connecting-wso2-g-reg-to-secured.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2376224274360374209?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2376224274360374209?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/DrlWxj7BfI4/connecting-wso2-g-reg-to-secured.html" title="Connecting WSO2 G-Reg to a secured &amp; confidential external user store" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-38GuUIBzvio/TsY3qbiNgHI/AAAAAAAAAQ8/MS51vzS-FOo/s72-c/user_store1.png" height="72" width="72" /><thr:total>0</thr:total><georss:featurename>Borupana Rd, Dehiwala-Mount Lavinia, Sri Lanka</georss:featurename><georss:point>6.814114306089958 79.89068984985352</georss:point><georss:box>6.798347806089958 79.87094884985352 6.829880806089958 79.91043084985351</georss:box><feedburner:origLink>http://yumani.blogspot.com/2011/11/connecting-wso2-g-reg-to-secured.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4FQHw8cCp7ImA9WhRSFk0.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-1646618901201554429</id><published>2011-11-08T19:03:00.000-08:00</published><updated>2011-11-18T01:35:11.278-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-18T01:35:11.278-08:00</app:edited><title>How to verify your ESB is started with NIO transport or servlet transport</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
All WSO2 Carbon products use HTTP Servlet Transport Implementation as default HTTP/HTTPS transport, except for WSO2 ESB.&amp;nbsp; ESB is shipped with HTTP-NIO Transport Implementation as the default transport.&lt;br /&gt;
&lt;br /&gt;
To verify this we can check the following configuration in axis2.xml which resides in ESB_HOME/repository/conf. As we already know axis2.xml keeps the global configuration for WSO2&amp;nbsp; Carbon based products. The &amp;lt;transportReceiver&amp;gt; and &amp;lt;transportSender&amp;gt; elements within it are used to configure the transport receivers and senders of the server. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the product is configured to use HTTP-NIO transport implementation the &amp;lt;transportReceiver&amp;gt; and &amp;lt;transportSender&amp;gt; should be set as below.&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="port" locked="false"&amp;gt;8280&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="non-blocking" locked="false"&amp;gt;true&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--parameter name="bind-address" locked="false"&amp;gt;hostname or IP address&amp;lt;/parameter--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--parameter name="WSDLEPRPrefix" locked="false"&amp;gt;https://apachehost:port/somepath&amp;lt;/parameter--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="httpGetProcessor" locked="false"&amp;gt;org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;parameter name="priorityConfigFile" locked="false"&amp;gt;location of priority configuration file&amp;lt;/parameter&amp;gt;--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/transportReceiver&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- the non blocking https transport based on HttpCore + SSL-NIO extensions --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="port" locked="false"&amp;gt;8243&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="non-blocking" locked="false"&amp;gt;true&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--parameter name="bind-address" locked="false"&amp;gt;hostname or IP address&amp;lt;/parameter--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--parameter name="WSDLEPRPrefix" locked="false"&amp;gt;https://apachehost:port/somepath&amp;lt;/parameter--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;parameter name="priorityConfigFile" locked="false"&amp;gt;location of priority configuration file&amp;lt;/parameter&amp;gt;--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="httpGetProcessor" locked="false"&amp;gt;org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="keystore" locked="false"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;KeyStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Location&amp;gt;repository/resources/security/wso2carbon.jks&amp;lt;/Location&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Type&amp;gt;JKS&amp;lt;/Type&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Password&amp;gt;wso2carbon&amp;lt;/Password&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;KeyPassword&amp;gt;wso2carbon&amp;lt;/KeyPassword&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/KeyStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="truststore" locked="false"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TrustStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Location&amp;gt;repository/resources/security/client-truststore.jks&amp;lt;/Location&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Type&amp;gt;JKS&amp;lt;/Type&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Password&amp;gt;wso2carbon&amp;lt;/Password&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TrustStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;parameter name="SSLVerifyClient"&amp;gt;require&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; supports optional|require or defaults to none --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/transportReceiver&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;
&amp;nbsp;&amp;lt;!-- the non-blocking http transport based on HttpCore + NIO extensions --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="non-blocking" locked="false"&amp;gt;true&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/transportSender&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="non-blocking" locked="false"&amp;gt;true&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="keystore" locked="false"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;KeyStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Location&amp;gt;repository/resources/security/wso2carbon.jks&amp;lt;/Location&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Type&amp;gt;JKS&amp;lt;/Type&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Password&amp;gt;wso2carbon&amp;lt;/Password&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;KeyPassword&amp;gt;wso2carbon&amp;lt;/KeyPassword&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/KeyStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="truststore" locked="false"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TrustStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Location&amp;gt;repository/resources/security/client-truststore.jks&amp;lt;/Location&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Type&amp;gt;JKS&amp;lt;/Type&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Password&amp;gt;wso2carbon&amp;lt;/Password&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TrustStore&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;parameter name="HostnameVerifier"&amp;gt;DefaultAndLocalhost&amp;lt;/parameter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/transportSender&amp;gt;&lt;/div&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-1646618901201554429?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PGOkuUtN1SE330lUtW2AvQDt6U4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PGOkuUtN1SE330lUtW2AvQDt6U4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PGOkuUtN1SE330lUtW2AvQDt6U4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PGOkuUtN1SE330lUtW2AvQDt6U4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/pkkIZd3vZ8o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/1646618901201554429/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/11/how-to-verify-your-esb-is-started-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/1646618901201554429?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/1646618901201554429?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/pkkIZd3vZ8o/how-to-verify-your-esb-is-started-with.html" title="How to verify your ESB is started with NIO transport or servlet transport" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2011/11/how-to-verify-your-esb-is-started-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EMQns7fyp7ImA9WhdVEUQ.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-2445368989869736206</id><published>2011-09-13T20:41:00.000-07:00</published><updated>2011-09-16T10:54:43.507-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-16T10:54:43.507-07:00</app:edited><title>WSO2Con 2011 !!!!</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-q5izrsmL-SI/TnAiH22VflI/AAAAAAAAAQM/2aWkd2kIFT4/s1600/General-flyer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-q5izrsmL-SI/TnAiH22VflI/AAAAAAAAAQM/2aWkd2kIFT4/s1600/General-flyer.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-2445368989869736206?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1Zu3BKu_kkQosDheotQ2zJTR7OI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1Zu3BKu_kkQosDheotQ2zJTR7OI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1Zu3BKu_kkQosDheotQ2zJTR7OI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1Zu3BKu_kkQosDheotQ2zJTR7OI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/eF9efYEaZFk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/2445368989869736206/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/09/wso2-con-2011.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2445368989869736206?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2445368989869736206?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/eF9efYEaZFk/wso2-con-2011.html" title="WSO2Con 2011 !!!!" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-q5izrsmL-SI/TnAiH22VflI/AAAAAAAAAQM/2aWkd2kIFT4/s72-c/General-flyer.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2011/09/wso2-con-2011.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYDR305cSp7ImA9WhdRFU4.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-3753241059676428561</id><published>2011-08-05T01:16:00.000-07:00</published><updated>2011-08-05T01:16:16.329-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-05T01:16:16.329-07:00</app:edited><title>How to access WSO2 StratosLive.com from a Google Apps account</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This simple step by step guide will show you how to access WSO2 StratosLive.com via a Google Apps Account.&lt;br /&gt;

&lt;br /&gt;

&lt;ol&gt;
&lt;li&gt;
    &lt;div style="margin-bottom: 0in;"&gt;
Create a sample Google Apps 	Account.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
A sample googleApps account can 		be created using the following link 		&lt;a href="https://www.google.com/a/cpanel/sample/new"&gt;https://www.google.com/a/cpanel/sample/new&lt;/a&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
After the account is created, you
 		need to add users by going through 'Administrative Control Panel' 
&amp;gt; 		'Organization &amp;amp; Users' &amp;gt; 'Create a new user'&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Note: your password for admin 		
login will be sent to the email address that you gave at the 		creation.
 Else you can reset admin password while you are creating 		new users.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;div style="margin-bottom: 0in;"&gt;
Access StratosLive.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
You may use 		&lt;a href="https://stratoslive.wso2.com/carbon"&gt;https://stratoslive.wso2.com/carbon&lt;/a&gt; 		to access StratosLive.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
In the home page there will be a 
		sign-in button. Click that and you will be redirected to the login 		
prompt for user name\password login and Google Apps login.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Click on 'Google Apps' button.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;div style="margin-bottom: 0in;"&gt;
Login to StratosLive via Google 	Apps.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in; orphans: 2; widows: 2;"&gt;
When you 	
	click on 'Google Apps' button, it will ask you to enter google app 		
domain name. Give your information here. (e.g. mine is like this 		&lt;span style="color: black;"&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-style: normal;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="background: none repeat scroll 0% 0% rgb(255, 255, 255);"&gt;yumaniwso2com.sample-ga.com)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Remember you don't need to give 	
	the user name here. That is; you should NOT give domain name as 		
admin@yumaniwso2com.sample-ga.com. That is not what it asks.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Then it will take you to the 		google apps account where you will be prompt to give your google 		app's user name and password.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Once the credentials are 		validated you will be taken into StratosLive!!!&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;div style="margin-bottom: 0in;"&gt;
Enjoy services at StratosLive with 	the users of your google apps account.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Once in StratosLive; If you go to
 		Configure &amp;gt; Users &amp;amp; Roles in Stratos Manger, you will find 		
all the users in your sample account there.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
In StratosLive however, this 		
intial usage plan is considered as a 'Demo' version. Therefore it 		
restricts your user count to 1 excluding the admin user.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Due to this only you and another 		one user will be able to login at first.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;div style="margin-bottom: 0in;"&gt;
Upgrade your subscription.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
To overcome the above limitation, 		you can upgrade your usage plan easily.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Go to 'Configure' &amp;gt; 'Account' 		&amp;gt; 'Usage Plan Information' and update the usage plan.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
The information about the level 	
	of facilities and related usage charges can be viewed from the 		
'Pricing Info' link next to the subscription type drop down.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
    &lt;div style="margin-bottom: 0in;"&gt;
Enjoy StratosLive&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
        &lt;div style="margin-bottom: 0in;"&gt;
Once upgraded to a higher usage 	
	plan, more than one user from your google apps account will be able 		
to login to StratosLive.com.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
        Now we are fine to explore the services available in 		StratosLive !!!&lt;br /&gt;

        &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-3753241059676428561?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dJCT79MV8Jx0w_WC1ITlOdQ0lUU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dJCT79MV8Jx0w_WC1ITlOdQ0lUU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dJCT79MV8Jx0w_WC1ITlOdQ0lUU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dJCT79MV8Jx0w_WC1ITlOdQ0lUU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/F-7NJ9x77Xs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/3753241059676428561/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/08/how-to-access-wso2-stratoslivecom-from.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/3753241059676428561?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/3753241059676428561?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/F-7NJ9x77Xs/how-to-access-wso2-stratoslivecom-from.html" title="How to access WSO2 StratosLive.com from a Google Apps account" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2011/08/how-to-access-wso2-stratoslivecom-from.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkQAQ3k-eip7ImA9WhRSFkw.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-6598523105329139657</id><published>2011-06-17T12:46:00.000-07:00</published><updated>2011-11-18T01:59:02.752-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-18T01:59:02.752-08:00</app:edited><title>Setting up WSO2 Stratos in personal machine</title><content type="html">Here are the steps to setup Stratos in your personal machine.&lt;br /&gt;
&lt;br /&gt;
1. Checkout the stratos setting-up script from here.&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'lucida grande',tahoma,verdana,arial,sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href="https://svn.wso2.org/repos/wso2/trunk/carbon/build"&gt;https://svn.wso2.org/repos/wso2/trunk/carbon/build&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. Copy the wso2straos-manager-1.5.0, wso2stratos-is-1.5.0, wso2stratos-bam-1.5.0 distributions and the binary distributions of the services that you wish to include. i.e. wso2stratos-esb-1.5.0.&lt;br /&gt;
Lets mark this place where you copy these .zip files as PACKS_DIR.&lt;br /&gt;
&lt;br /&gt;
3. Export following environment variables to your .bashrc&lt;br /&gt;
&lt;pre class="bash" name="code"&gt;export PACKS_DIR="/home/yumani/Documents/packs/3.2.0"
export STRATOS_DIR="/home/yumani/Documents/Stratos/stratos320"
export STRATOS_VERSION=1.5.0
export SSO_ENABLED=true
export CREATE_DB=true

export STRATOS_MAIL_TRANSPORT='&amp;amp;lttransportsender class="org.apache.axis2.transport.mail.MailTransportSender" name="mailto"&amp;gt; &amp;amp;ltparameter name="mail.smtp.host"&amp;amp;gtcheetara.wso2.com&amp;lt;/parameter&amp;gt;&amp;amp;ltparameter name="mail.smtp.port"&amp;amp;gt25&amp;lt;/parameter&amp;gt; &amp;amp;ltparameter name="mail.smtp.starttls.enable"&amp;amp;gtfalse&amp;lt;/parameter&amp;gt; &amp;amp;ltparameter name="mail.smtp.auth"&amp;amp;gtfalse&amp;lt;/parameter&amp;gt;  &amp;amp;ltparameter name="mail.smtp.from"&amp;amp;gtcloud-noreply@wso2.com&amp;lt;/parameter&amp;gt; &amp;lt;/transportsender&amp;gt;'
export NOTIFICATION_EMAIL=xxxx@wso2.com
&lt;/pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
4. Run&amp;nbsp;stratos-setup.pl. (NOTE: Before this you may need to install 'liblist-moreutils-perl' to execute the perl script)&lt;br /&gt;
&lt;br /&gt;
5. Then update your /etc/hosts file with following;&lt;br /&gt;
&lt;pre class="console" name="code"&gt;127.0.0.1 cloud-test.wso2.com
127.0.0.1 identity.cloud-test.wso2.com
127.0.0.1 governance.cloud-test.wso2.com
127.0.0.1 appserver.cloud-test.wso2.com
127.0.0.1 bam.cloud-test.wso2.com
127.0.0.1 dss.cloud-test.wso2.com
127.0.0.1 bps.cloud-test.wso2.com
127.0.0.1 brs.cloud-test.wso2.com
127.0.0.1 cep.cloud-test.wso2.com
127.0.0.1 esb.cloud-test.wso2.com
127.0.0.1 gadget.cloud-test.wso2.com
127.0.0.1 mb.cloud-test.wso2.com
127.0.0.1 mashup.cloud-test.wso2.com
&lt;/pre&gt;&lt;br /&gt;
6. After this you can start the servers. You will find that the setting-up script has unzipped all the binary distributions (you copied to PACKS_DIR) into the STRATOS_DIR location which, you specified in .bachrc.&lt;br /&gt;
&lt;br /&gt;
7. Go to above CARBON_HOME. &amp;nbsp;You have two ways to start the cloud environment.&lt;br /&gt;
&amp;nbsp;i. Running the stratos.sh in STRAROS_DIR. Using stratos.sh you can start all the services and the manager at once or a selected set of services and the manager.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; i.e.&lt;br /&gt;
&lt;pre class="console" name="code"&gt;sh stratos.sh startall&lt;/pre&gt;&lt;pre class="console" name="code"&gt;sh stratos.sh wso2stratos-manager-1.5.0 wso2stratos-is-1.5.0 wso2stratos-bam-1.5.0&lt;/pre&gt;&lt;br /&gt;
ii. Starting each service using its own startup scripts (CARBON_HOME/bin/wso2server.sh). This way you can first start the manager following wso2stratos-is and wsorstratos-bam. Then the other services as you wish.&lt;br /&gt;
&lt;br /&gt;
That's all.. Now you can access wso2stratos-manager from browser and start using the cloud environment. URL for the stratos-manager can be gained from its startup logs which are printed on the back-end console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-6598523105329139657?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vqEQFphIZTMqpmRy1IgnrvktUZ0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vqEQFphIZTMqpmRy1IgnrvktUZ0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vqEQFphIZTMqpmRy1IgnrvktUZ0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vqEQFphIZTMqpmRy1IgnrvktUZ0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/T6PfN1na7vg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/6598523105329139657/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2011/06/setting-up-wso2-stratos-in-personal.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/6598523105329139657?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/6598523105329139657?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/T6PfN1na7vg/setting-up-wso2-stratos-in-personal.html" title="Setting up WSO2 Stratos in personal machine" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://yumani.blogspot.com/2011/06/setting-up-wso2-stratos-in-personal.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cAQncycCp7ImA9WhRSFkw.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-883480575664508670</id><published>2010-12-13T01:35:00.000-08:00</published><updated>2011-11-18T02:10:43.998-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-18T02:10:43.998-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WSO2 BAM" /><category scheme="http://www.blogger.com/atom/ns#" term="App Server" /><category scheme="http://www.blogger.com/atom/ns#" term="ESB" /><title>Activity monitoring using WSO2 BAM Server</title><content type="html">In this scenario we will be monitoring requests and responses passed through a proxy service in WSO2 ESB. The proxy service is calling an in/out operation in an Axis2Service in WSO2 WSAS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lets make the setup.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
A) Deploy the axis2 service in WSO2 App Server.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Download WSO2 App Server-3.2.1 distribution from &lt;a href="http://wso2.org/downloads/appserver/3.2.1"&gt;here&lt;/a&gt; and extract it. &lt;br /&gt;
&lt;br /&gt;
In this setup we are going to have 3 WSO2 servers running at the same time. Therefore, we need to change the http/https ports of each server to make the servers start in different ports. To do this go to the CARBON_HOME/repository/conf and update the http/https ports in mgt-transports.xml and axis2.xml files.&lt;br /&gt;
&lt;br /&gt;
2. Start WSO2 App Server distribution by running the startup scripts in  WSAS_HOME/bin/.&lt;br /&gt;
$ sh wso2server.sh in Ubuntu and &lt;br /&gt;
$ wso2server.bat in Windows.&lt;br /&gt;
&lt;br /&gt;
3. Once the server is started, Sign-in to admin console and go to Services &amp;gt;Add &amp;gt;Axis2Service and upload this service.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_aXV36xqOS-8/TQXjaaXt7OI/AAAAAAAAAO8/GT_pirRD7RI/s1600/img4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" src="http://2.bp.blogspot.com/_aXV36xqOS-8/TQXjaaXt7OI/AAAAAAAAAO8/GT_pirRD7RI/s640/img4.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we have WSO2 WSAS waiting with a service in it at http://192.168.1.4:9764/wsas/services/Axis2Service?wsdl. Let's setup WSO2 ESB.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;B) Configure WSO2 ESB&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Download a WSO2 ESB-3.0.1 distribution from &lt;a href="http://wso2.org/downloads/esb"&gt;here&lt;/a&gt; and extract it. Change its ports and start the server as instructed above.&lt;br /&gt;
&lt;br /&gt;
2. Once the server is started, Sign-in to admin console and go to Manage &amp;gt; Service Bus &amp;gt; Source View. Paste the following configuration into the source view.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;&amp;lt;proxy name="DemoProxy1" transports="https http" startOnLoad="true" trace="disable" statistics="enable"&amp;gt;
        &amp;lt;target&amp;gt;
            &amp;lt;endpoint name="endpoint_act"&amp;gt;
                &amp;lt;address uri="http://192.168.1.4:9764/wsas/services/Axis2Service/" statistics="enable"/&amp;gt;
            &amp;lt;/endpoint&amp;gt;
            &amp;lt;inSequence statistics="enable"&amp;gt;
                &amp;lt;log&amp;gt;
                    &amp;lt;property name="IN" value="*********IN****************"/&amp;gt;
                &amp;lt;/log&amp;gt;
            &amp;lt;/inSequence&amp;gt;
        &amp;lt;/target&amp;gt;
        &amp;lt;publishWSDL uri="http://192.168.1.4:9764/wsas/services/Axis2Service?wsdl"/&amp;gt;
    &amp;lt;/proxy&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
NOTE: You may need to chnage the endpoint epr according to your network settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;C) Add publisher jars to ESB.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We need to enable Activity Publishing in ESB. Since ESB doesn't have activity publishing feature in it by default, we need to add the relevant jars manually.&lt;br /&gt;
So download following org.wso2.carbon.bam.data.publisher.activity.mediation-3.0.1.jar &amp;amp; org.wso2.carbon.bam.data.publisher.activity.mediation.ui-3.0.1.jar and copy to ESB_HOME/repository/components/dropins/ folder. This will add 'Activity Publishing' menu to ESB admin console under Configure menu.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TQXjvtgEuLI/AAAAAAAAAPE/nKIZU3OrBSM/s1600/img1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="206" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TQXjvtgEuLI/AAAAAAAAAPE/nKIZU3OrBSM/s400/img1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Also we need to update the org.wso2.carbon.bam.data.publisher.activity.mediation-3.0.1.jar in ESB_HOME/repository/components/plugins with this patched version.&lt;br /&gt;
&lt;br /&gt;
Lastly we need to enable message tracing in ESB. Open ESB_HOME/repository/conf/carbon.xml and add this;&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;&amp;lt;MediationStat&amp;gt;
    &amp;lt;MessageTracing&amp;gt;enabled&amp;lt;/MessageTracing&amp;gt;
&amp;lt;/MediationStat&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
In the next step access ESB UI and enable message tracing. Sign-in to ESB admin console, navigate to 'Activity Publishing. In the 'Activity Publisher Configuration' page enable message tracing, go to Activity Publishing and enable eventing.&lt;br /&gt;
Message Threshold will be set to 2 by default. This is the minimum number of messages you need to have in the que before being read by a subscriber.&lt;br /&gt;
Enable 'Message Dumping' and 'Message Lookup'. Xpath expression is the value from which your message will be filtered  for the subscriber.&lt;br /&gt;
&lt;br /&gt;
After configurations on ESB side is done, we need to configure WSO2 BAM to monitor messages from and to ESB.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;D) Configure BAM&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Download WSO2 BAM-1.2.0 distribution from &lt;a href="http://wso2.org/downloads/bam"&gt;here&lt;/a&gt; and extract it. Change its ports and start the server as instructed above.&lt;br /&gt;
&lt;br /&gt;
NOTE: BAM is configured to use H2 database by default. If you want to connect to oracle, mySql or an MS SQL db you need to create the database by running a script and update driverClassName,url, username, password in datasources.properties file which resides in BAM_HOME/repository/conf. Details of configuring to other DBMSs are explained &lt;a href="http://yumani.blogspot.com/2010/12/configuring-wso2-bam-to-connect-to.html"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
2. Now start WSO2 BAM server and sign-in to the admin console.&lt;br /&gt;
&lt;br /&gt;
3. Navigate to Configure &amp;gt; Monitored Servers &amp;gt; Add Servers.&lt;br /&gt;
&lt;br /&gt;
4. Add the server information of your ESB server, which we are going to monitor. Since we are monitoring mediation, our data collection method should be 'eventing' and type of data thats traced will be 'message'. So the coonfiguration is:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TQXlIouz3bI/AAAAAAAAAPI/jDqd7oMTLbc/s1600/img5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="182" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TQXlIouz3bI/AAAAAAAAAPI/jDqd7oMTLbc/s400/img5.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;Server URL : https://&lt;ip esb="" for=""&gt;&lt;esb port=""&gt;&amp;lt;server IP&amp;gt;:&amp;lt;server port&amp;gt;&lt;br /&gt;
Data Collection method : Eventing&lt;br /&gt;
Type of data : Messagega&lt;br /&gt;
User Name : user name for ESB&lt;br /&gt;
Password  : Password for ESB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this you will have an entry in the 'Monitored Servers' with the information you gave above.&lt;/esb&gt;&lt;/ip&gt;&lt;br /&gt;
&lt;ip esb="" for=""&gt;&lt;esb port=""&gt;&lt;br /&gt;
&lt;/esb&gt;&lt;/ip&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TQXliT30fzI/AAAAAAAAAPM/ztqDnMwo5NU/s1600/img6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="171" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TQXliT30fzI/AAAAAAAAAPM/ztqDnMwo5NU/s400/img6.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ip esb="" for=""&gt;&lt;esb port=""&gt;&lt;br /&gt;
&lt;/esb&gt;&lt;/ip&gt;&lt;br /&gt;
&lt;ip esb="" for=""&gt;&lt;esb port=""&gt;&lt;/esb&gt;&lt;/ip&gt;&lt;br /&gt;
&lt;ip esb="" for=""&gt;&lt;esb port=""&gt;&lt;/esb&gt;&lt;/ip&gt;&lt;br /&gt;
&lt;ip esb="" for=""&gt;&lt;esb port=""&gt; &lt;br /&gt;
&lt;b&gt;E) Monitor the messages&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Using a client send messages to the proxy service we created above. i am using following java client.&lt;br /&gt;
&lt;br /&gt;
&lt;/esb&gt;&lt;/ip&gt;&lt;br /&gt;
&lt;pre class="java" name="code"&gt;
/*
*Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you under the Apache License,
*Version 2.0 (the "License"); you may not use this file except
*in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing,
*software distributed under the License is distributed on an
*"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
*KIND, either express or implied.  See the License for the
*specific language governing permissions and limitations
*under the License.
*/

package org.wso2.carbon.test;

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;

import javax.xml.namespace.QName;

public class EsbDemoProxy {

    private static EndpointReference targetEPR = new EndpointReference(
            "http://10.100.1.120:8280/bam/services/DemoProxy1");

    public static OMElement echoPayload(String x) {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace("http://service.carbon.wso2.org", "example");
        OMElement method = fac.createOMElement("echoInt", omNs);
        OMElement value = fac.createOMElement("x", omNs);
        value.addChild(fac.createOMText(value, x));
        method.addChild(value);
        return method;
    }



    public static void main(String[] args) throws AxisFault {

        // creates a new connection manager and a http client object
        MultiThreadedHttpConnectionManager httpConnectionManager = new MultiThreadedHttpConnectionManager();
        HttpClient httpClient = new HttpClient(httpConnectionManager);
        for (int a = 0; a &amp;lt; 1; a++) {
            for (int i = 0; i &amp;lt; 1; i++) {
                ServiceClient sender = new ServiceClient();
                try {
                    OMElement payload1 = EsbDemoProxy.echoPayload("55");
                    Options options = new Options();
                    options.setTo(targetEPR);
                    options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

                    OMFactory omFactory = OMAbstractFactory.getOMFactory();
                    OMElement omElement = omFactory.createOMElement(new QName("http://wso2.org/ns/2010/10/bam", "BAMEvent", "ns"), null);
                    omElement.addAttribute("activityID", "AAAAIsiasd-sdswodi-2329", null);

                    OMElement bampropertyElement = omFactory.createOMElement(new QName("http://wso2.org/ns/2010/10/bam", "Property", "ns"), null);
                    bampropertyElement.addAttribute("name", "ESB2_a", null);
                    bampropertyElement.addAttribute("value", "A", null);

                    omElement.addChild(bampropertyElement);
                    omElement.addChild(omElement);

                    sender.addHeader(omElement);

                    sender.setOptions(options);
                    OMElement result1 = sender.sendReceive(payload1);
                    String response1 = result1.getFirstElement().getText();
                    System.out.println(response1);

                } catch (Exception e) { // (XMLStreamException e) {
                    System.out.println(e.toString());
                }
                finally {
                    if (sender != null) {
                        try {
                            sender.cleanupTransport();
                        } catch (Exception e) {
                            e.printStackTrace();
                        }

                        try {
                            sender.cleanup();
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    }
                }

                httpConnectionManager.closeIdleConnections(0);
                httpConnectionManager.shutdown();
            }
        }
    }
}

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
2. After sending few messages you will be able to observe the messages from the BAM Admin Console &amp;gt; Main Dashboard &amp;gt; Actvity Tab&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-883480575664508670?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/guMY8CcvOjGXP38trZrNnzhBjXU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/guMY8CcvOjGXP38trZrNnzhBjXU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/guMY8CcvOjGXP38trZrNnzhBjXU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/guMY8CcvOjGXP38trZrNnzhBjXU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/rQvCTS_1G6k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/883480575664508670/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/12/activity-monitoring-using-wso2-bam.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/883480575664508670?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/883480575664508670?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/rQvCTS_1G6k/activity-monitoring-using-wso2-bam.html" title="Activity monitoring using WSO2 BAM Server" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_aXV36xqOS-8/TQXjaaXt7OI/AAAAAAAAAO8/GT_pirRD7RI/s72-c/img4.jpg" height="72" width="72" /><thr:total>4</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/12/activity-monitoring-using-wso2-bam.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QCRnsyfip7ImA9Wx9REk8.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-2377015969403590409</id><published>2010-12-13T00:36:00.000-08:00</published><updated>2010-12-13T00:36:07.596-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-13T00:36:07.596-08:00</app:edited><title>Configuring WSO2 BAM to connect to different Databases</title><content type="html">&lt;b&gt;Connecting to mySql database.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. You need to execute the mysql.sql in BAM_HOME/dbscripts folder.&lt;br /&gt;
&lt;br /&gt;
- Navigate to where you have the above script.&lt;br /&gt;
- Login to MySQL as the root user.&lt;br /&gt;
&lt;pre class="console" name="code"&gt;mysql -u root -p
&lt;/pre&gt;- give the password at the prompt&lt;br /&gt;
&lt;br /&gt;
- Execute the mysql.sql script.&lt;br /&gt;
&lt;pre class="console" name="code"&gt;source mysql.sql
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This will create the BAM database. To connect to the database you need to:&lt;br /&gt;
&lt;br /&gt;
2. Copy the mysql driver to CARBON.&lt;br /&gt;
- Navigate to BAM_HOME/repository/components/lib and copy mysql-connector-java-5.1.7-bin.jar.&lt;br /&gt;
&lt;br /&gt;
3. Update BAM_HOME/repository/conf/datasources.properties with your database information. A sample is done below.&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;synapse.datasources=bamMySQL
synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
synapse.datasources.providerPort=2199
synapse.datasources.bamh2.registry=JNDI
synapse.datasources.bamh2.type=BasicDataSource
synapse.datasources.bamh2.driverClassName=com.mysql.jdbc.Driver
synapse.datasources.bamh2.url=jdbc:mysql://localhost:3306/wso2bam_db
synapse.datasources.bamh2.username=wso2bam
synapse.datasources.bamh2.password=wso2bam‎
synapse.datasources.bamh2.dsName=bam_datasource
synapse.datasources.bamh2.maxActive=100
synapse.datasources.bamh2.maxIdle=20
synapse.datasources.bamh2.maxWait=10000
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Connecting to Oracle database&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. You need to execute the oracle.sql in BAM_HOME/dbscripts folder.&lt;br /&gt;
&lt;br /&gt;
- Login to SQLPlus as a sysdba and create the db user and grant required access.&lt;br /&gt;
&lt;pre class="console" name="code"&gt;$sqlplus sys as sysdba; 

SQL&amp;gt; startup
drop user wso2bam‎ cascade; 
Create user wso2bam‎ identified by wso2bam account unlock; 
grant connect to wso2bam; 
grant create session, dba to wso2bam;
commit;
&lt;/pre&gt;&lt;br /&gt;
Now login from the above created user and execute the oracle.sql script&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="console" name="code"&gt;sqlplus wso2bam/wso2bam@10.100.1.10/ORCL
SQL&amp;gt;&amp;gt;@&lt;bam_home&gt;/dbscripts/bam/bam_schema_oracle.sql;
&lt;/bam_home&gt;&lt;/pre&gt;&lt;br /&gt;
This will create the BAM database. To connect to the database you need to:&lt;br /&gt;
&lt;br /&gt;
2. Copy the mysql driver to CARBON.&lt;br /&gt;
- Navigate to BAM_HOME/repository/components/lib and copy ojdbc14.jar.&lt;br /&gt;
&lt;br /&gt;
3. Update BAM_HOME/repository/conf/datasources.properties with your database information. A sample is done below.&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;synapse.datasources=bamOracle
synapse.datasources.icFactory=com.sun.jndi.rmi.registry.RegistryContextFactory
synapse.datasources.providerPort=2199
synapse.datasources.bamh2.registry=JNDI
synapse.datasources.bamh2.type=BasicDataSource
synapse.datasources.bamh2.driverClassName=oracle.jdbc.driver.OracleDriver
synapse.datasources.bamh2.url=jdbc:oracle:thin:@localhost:1521/wso2bam_db
synapse.datasources.bamh2.username=wso2bam
synapse.datasources.bamh2.password=wso2bam
synapse.datasources.bamh2.dsName=bam_datasource
synapse.datasources.bamh2.maxActive=100
synapse.datasources.bamh2.maxIdle=20
synapse.datasources.bamh2.maxWait=10000
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-2377015969403590409?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bnLEcXvplPyE8jG04OpEWxBoTuo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bnLEcXvplPyE8jG04OpEWxBoTuo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bnLEcXvplPyE8jG04OpEWxBoTuo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bnLEcXvplPyE8jG04OpEWxBoTuo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/8J2LqwMQla0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/2377015969403590409/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/12/configuring-wso2-bam-to-connect-to.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2377015969403590409?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2377015969403590409?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/8J2LqwMQla0/configuring-wso2-bam-to-connect-to.html" title="Configuring WSO2 BAM to connect to different Databases" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/12/configuring-wso2-bam-to-connect-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08CRXs8eSp7ImA9Wx5aE0g.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-1816869220218360430</id><published>2010-11-09T19:28:00.000-08:00</published><updated>2010-11-09T19:31:04.571-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-09T19:31:04.571-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="phpMyAdmin" /><category scheme="http://www.blogger.com/atom/ns#" term="mySQL" /><title>Setting-up phpMyAdmin to administer MySQL databases from a web console.</title><content type="html">In unix environment we usually use mysql command prompt to work with mySQL databases. Sometimes its hard to view large data tables from this manner. phpMyAdmin comes handy in this.&lt;br /&gt;
&lt;br /&gt;
Below are the simple steps how you could setup it in Ubuntu.&lt;br /&gt;
&lt;br /&gt;
1. Do an apt-get install to phpmyadmin&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install phpmyadmin&lt;br /&gt;
&lt;br /&gt;
2. During the installation process it'll configure a web server and a database to run phpMyAdmin. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TNoQKooaS7I/AAAAAAAAAOg/DmeGpmoYKn0/s1600/php1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="262" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TNoQKooaS7I/AAAAAAAAAOg/DmeGpmoYKn0/s640/php1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TNoQR_6rYII/AAAAAAAAAOo/38Bx8THpj1o/s1600/php2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="124" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TNoQR_6rYII/AAAAAAAAAOo/38Bx8THpj1o/s640/php2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
3. As final steps give user name and password to access the web console.&lt;br /&gt;
&lt;br /&gt;
4. After the installation you can access phpMyAdmin via web console via &lt;a href="http://localhost/phpmyadmin"&gt;http://localhost/phpmyadmin&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_aXV36xqOS-8/TNoQsDhMPdI/AAAAAAAAAOw/SPaiOGnqMe8/s1600/php3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://2.bp.blogspot.com/_aXV36xqOS-8/TNoQsDhMPdI/AAAAAAAAAOw/SPaiOGnqMe8/s640/php3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
5. Inside the admin console you may find all available mySQL databases listed in the top left corner of the window. Simply click on the required database to access it.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TNoQ7H7a47I/AAAAAAAAAO0/jgQTDqmpfwA/s1600/php4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="332" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TNoQ7H7a47I/AAAAAAAAAO0/jgQTDqmpfwA/s640/php4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
6. You can then browse, query, track, drop tables\data, import\export data using this console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TNoRDzYJTeI/AAAAAAAAAO4/lMtohZFSD9M/s1600/php5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="363" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TNoRDzYJTeI/AAAAAAAAAO4/lMtohZFSD9M/s640/php5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-1816869220218360430?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BIm5U5eL8wTkqAWeaJJk_eITrcs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BIm5U5eL8wTkqAWeaJJk_eITrcs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BIm5U5eL8wTkqAWeaJJk_eITrcs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BIm5U5eL8wTkqAWeaJJk_eITrcs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/qHc9sOT-RbA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/1816869220218360430/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/11/setting-up-phpmyadmin-to-administer.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/1816869220218360430?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/1816869220218360430?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/qHc9sOT-RbA/setting-up-phpmyadmin-to-administer.html" title="Setting-up phpMyAdmin to administer MySQL databases from a web console." /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_aXV36xqOS-8/TNoQKooaS7I/AAAAAAAAAOg/DmeGpmoYKn0/s72-c/php1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/11/setting-up-phpmyadmin-to-administer.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YFRHk-eyp7ImA9Wx5bFkQ.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-3600471962139763813</id><published>2010-11-02T04:58:00.000-07:00</published><updated>2010-11-02T04:58:35.753-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-02T04:58:35.753-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Gadget Server" /><category scheme="http://www.blogger.com/atom/ns#" term="Carbon Studio" /><title>Creating a gadget for WSO2 Gadget Server using Carbon Studio</title><content type="html">I've converted my last post on WSO2 Carbon Studio and Gadget Server, to a tutorial with more description added. &lt;br /&gt;
&lt;br /&gt;
It is published in WSO2 Oxygen tank - Library as "&lt;a href="http://wso2.org/library/tutorials/2010/10/creating-gadget-wso2-gadget-server-using-capp"&gt;Creating a gadget for WSO2 Gadget Server using Carbon Studio&lt;/a&gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-3600471962139763813?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KNn6kzq09zmMqGixke3wRMJu9G4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KNn6kzq09zmMqGixke3wRMJu9G4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KNn6kzq09zmMqGixke3wRMJu9G4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KNn6kzq09zmMqGixke3wRMJu9G4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/YAoXoSalz1Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/3600471962139763813/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/11/creating-gadget-for-wso2-gadget-server.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/3600471962139763813?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/3600471962139763813?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/YAoXoSalz1Q/creating-gadget-for-wso2-gadget-server.html" title="Creating a gadget for WSO2 Gadget Server using Carbon Studio" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/11/creating-gadget-for-wso2-gadget-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYFR3s-fip7ImA9Wx5UEUk.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-4890274634357067696</id><published>2010-10-13T04:02:00.000-07:00</published><updated>2010-10-15T04:28:36.556-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-15T04:28:36.556-07:00</app:edited><title>Adding a gadget to WSO2 Gadget Server using cApp</title><content type="html">In previous posts I've explained &lt;a href="http://yumani.blogspot.com/2010/07/how-to-install-wso2-capp-in-ecliplse.htm"&gt;how to install WSO2 cApp into eclipse&lt;/a&gt;&amp;nbsp; and &lt;a href="http://yumani.blogspot.com/2010/09/creating-wso2-artifact-using-eclipse.html"&gt;how to start creating a WSO2 product artefact&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
So as I promised in the earlier posts, here is how you create an artefact. In this post I will explain how to create a gadget which can be deployed in WSO2 Gadget Server and viewed from Gadgets' portal.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Create a cApp project as in &lt;a href="http://yumani.blogspot.com/2010/09/creating-wso2-artifact-using-eclipse.html"&gt;here&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Create a gadget artefact&lt;/b&gt;.&lt;br /&gt;
Click on 'Create New artefact' button in root-artifact.xml in your cApp project and Select "Gadget" OR Right click on the cApp project you created and Select "Gadget". You will get 'New Gadget" creation wizard.&lt;br /&gt;
&lt;br /&gt;
At the 'Name' prompt, give your gadget artifact a name and proceed.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TLWalNXi5HI/AAAAAAAAAOE/YoYGz8yK9J0/s1600/Screenshot-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="496" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TLWalNXi5HI/AAAAAAAAAOE/YoYGz8yK9J0/s640/Screenshot-2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
In the next screen, specify a name for the folder containing you gadget specific artifacts and finish the wizard. &lt;br /&gt;
&lt;br /&gt;
NOTE: The project that you will be creating the artifact in will appear selected in this window. If you want you can change it here.&lt;br /&gt;
&lt;br /&gt;
So after this initial step you should have your project structure like this:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_aXV36xqOS-8/TLVUXrEKHvI/AAAAAAAAANg/TZxHOK68gvw/s1600/gad4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="380" src="http://2.bp.blogspot.com/_aXV36xqOS-8/TLVUXrEKHvI/AAAAAAAAANg/TZxHOK68gvw/s640/gad4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;3. Develope the gadget code&lt;/b&gt;.&lt;br /&gt;
WSO2 cApp loads open social development environment (OSDE) in Eclipse. This is one of the plugins that is getting installed with cApp. So if you double click on your .xml file (maps.xml in my case) you will have the OSDE opened up on the right side of the IDE.&lt;br /&gt;
&lt;br /&gt;
Now lets fill in the gadget code. The code that I am going to put in is a sample taken from googles gadget docs (http://code.google.com/apis/gadgets/docs/fundamentals.html#location).&lt;br /&gt;
&lt;br /&gt;
In the proceeding steps I will show you how easy it is to create and deploy this using cApps. &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="xml" name="code"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;
&amp;lt;Module&amp;gt;
&amp;nbsp; &amp;lt;ModulePrefs title="Map of __UP_loc__" height="300" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; author="Jane Smith" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; author_email="xxx@google.com" /&amp;gt; 
&amp;nbsp; &amp;lt;UserPref name="loc" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; display_name="Location" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; required="true" /&amp;gt;
&amp;nbsp; &amp;lt;Content type="html"&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[ 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="http://maps.google.com/maps?file=js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="map" style="width: 100%; height: 100%;"&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var prefs = new gadgets.Prefs();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var map = new GMap(document.getElementById("map"));
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addControl(new GSmallMapControl());
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addControl(new GMapTypeControl());
&amp;nbsp;&amp;nbsp;&amp;nbsp; var geocoder = new GClientGeocoder();
&amp;nbsp;&amp;nbsp;&amp;nbsp; geocoder.getLatLng(prefs.getString('loc'), showMap)

&amp;nbsp;&amp;nbsp;&amp;nbsp; function showMap(point) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (point!=null) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(point, 6);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;
&amp;nbsp; ]]&amp;gt; 
&amp;nbsp; &amp;lt;/Content&amp;gt;
&amp;lt;/Module&amp;gt;&lt;/pre&gt;&lt;br /&gt;
And it is as simple as filling the tabs that you find at the bottom your IDE (see the image below).&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVUvmzfZyI/AAAAAAAAANk/RuMo-wCazX8/s1600/gad5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="328" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVUvmzfZyI/AAAAAAAAANk/RuMo-wCazX8/s640/gad5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;ModulePrefs&lt;/span&gt; such as title, author, author_email can be filled in &lt;span style="color: purple;"&gt;Basic tab&lt;/span&gt; - '&lt;span style="color: #a64d79;"&gt;Attributes&lt;/span&gt;' section, fetures can be put in '&lt;span style="color: #a64d79;"&gt;Features&lt;/span&gt;' section of the same.&lt;br /&gt;
&lt;br /&gt;
I have a &lt;span style="color: blue;"&gt;UserPref&lt;/span&gt;, 'loc' in my gadget which I created in 'UserPref' tab and yes I made it a required parameter. Since it doesn't have a default value I kept that option empty and I stick to default 'String' data type.&lt;br /&gt;
&lt;br /&gt;
Then in the '&lt;span style="color: blue;"&gt;Content&lt;/span&gt; tab', I added my content. Click 'Add' button in 'Content' tab and say its an 'html' content (as you see in above code it is Content type="html"), and&amp;nbsp; since I go by default view I can leave 'view' type empty.&lt;br /&gt;
&lt;br /&gt;
After you do that, you will have an entry created for the view that you added just now and now you need to fill in the 'Content' to it. So fill in 'Content'; This includes all things you put within CDATA tags.&lt;br /&gt;
&lt;br /&gt;
NOTE: You DON'T need to type in &amp;lt;![CDATA[ section, as OSDE prints it by itself. And nore you cannot have &amp;lt;html&amp;gt;, &amp;lt;head&amp;gt;, or &amp;lt;body&amp;gt; tags as having them violate the gadget rules.&lt;br /&gt;
&lt;br /&gt;
That's it! now if you navigate to 'Source' tab, you will see you gadget's code there with complete, correct syntax and perfect alignments.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVVW29B1OI/AAAAAAAAANo/lJu1KXpEFmQ/s1600/gad91.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="296" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVVW29B1OI/AAAAAAAAANo/lJu1KXpEFmQ/s640/gad91.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;4. Add the gadget to server's gadget repository.&lt;/b&gt;&lt;br /&gt;
You need to have a WSO2 Gadget Server binary distribution with you. Download it from &lt;a href="http://wso2.org/downloads/gadget-server"&gt;here&lt;/a&gt;, extract and you are ready.&lt;br /&gt;
&lt;br /&gt;
While in J2EE perspective in eclipse, go to Server area and add a WSO2 Gadget Server as described &lt;a href="http://yumatni.blogspot.com/2010/10/how-to-add-wso2-carbon-server-to-capps.html"&gt;here&lt;/a&gt;. This will let you start the server from within eclipse.&lt;br /&gt;
&lt;br /&gt;
After you started the server; Login to Gadget Server admin console and navigate to '&lt;span style="color: #741b47;"&gt;/_system/config/repository/dashboards/gadgets&lt;/span&gt;' folder in internal registry. You will see the gadget that was deployed from cApp in here.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVWLsNfXII/AAAAAAAAANs/jkuWyDCYdxM/s1600/gad12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="624" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVWLsNfXII/AAAAAAAAANs/jkuWyDCYdxM/s640/gad12.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
You can view and edit your gadget code from here.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TLVWa7qBNVI/AAAAAAAAANw/QadYebfP5Jo/s1600/gar13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="483" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TLVWa7qBNVI/AAAAAAAAANw/QadYebfP5Jo/s640/gar13.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Now that we saw the gadget having deployed in the Server from cApp, we have to follow two more steps to make it available in Gadgets' portal where it is actually used.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;i. Grant anonymous user permission to the gadget.&lt;/i&gt;&lt;br /&gt;
For this navigate to '&lt;span style="color: #741b47;"&gt;/_system/config/repository/dashboards/&lt;/span&gt;' in Registry and grant all permissions to 'anonymous user' for gadgets folder.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVWt7gB7UI/AAAAAAAAAN0/5_G3FBd54D8/s1600/gad14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="355" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLVWt7gB7UI/AAAAAAAAAN0/5_G3FBd54D8/s640/gad14.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;i&gt;ii. Add the gadget to gadget repository.&lt;/i&gt;&lt;br /&gt;
From 'Manage Gadget Server' menu access 'Gadget Repository'. Click 'Add New Gadget' link from there. You need to add the gadget's information there.&lt;br /&gt;
&amp;nbsp; Gadget Name : Maps&lt;br /&gt;
&amp;nbsp; Gadget URL&amp;nbsp; : /registry/resource/_system/config/repository/dashboards/gadgets/maps.xml&lt;br /&gt;
You can add an image and description as you prefer.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;iii. Make the gadget available by default&lt;/i&gt;&lt;br /&gt;
So now the gadget is added to the repository. We need to make it a default gadget.&lt;br /&gt;
Go to Gadget Repository and look for your maps gadget. Once you find it enable 'Make Default' and 'Show Gadget To Anonymous User' options.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_aXV36xqOS-8/TLWOZza9lfI/AAAAAAAAAOA/XWspT136NXQ/s1600/gad16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="155" src="http://2.bp.blogspot.com/_aXV36xqOS-8/TLWOZza9lfI/AAAAAAAAAOA/XWspT136NXQ/s640/gad16.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Make Default -&lt;br /&gt;
Makes the gadget available to be added by any user who signs into gadget portal.&lt;br /&gt;
&lt;br /&gt;
Show Gadget To Anonymous User -&lt;br /&gt;
Makes gadget available as a default gadget to non-signed in users.&lt;br /&gt;
&lt;span id="goog_328224100"&gt;&lt;/span&gt;&lt;span id="goog_328224101"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5. Access the gadget from Gadgets' Portal&lt;/b&gt; &lt;br /&gt;
Now let's move to gadgets portal and use our gadget there.&lt;br /&gt;
&lt;br /&gt;
i. Click on "View Portal' menu or directly accesss &lt;a href="http://localhost:8080/portal"&gt;http://localhost:8080/portal&lt;/a&gt; &lt;br /&gt;
You could be automatically signed in as admin if you are in same browser session. Else click on 'Sign-in' link and sign in as admin (until u register a new user).&lt;br /&gt;
&lt;br /&gt;
ii. Click on 'add tab' button on top of the portal window to add a new tab.&lt;br /&gt;
&lt;br /&gt;
iii. Now let's our new gadget to this new tab. Click on 'Add Gadgets' button and it will open the gadget repository. Search for our 'maps' gadget and add it.&lt;br /&gt;
&lt;br /&gt;
Return to the Dashboard and you'll see your gadgets!!!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLWOMgxseRI/AAAAAAAAAN8/hWygqdrwgFI/s1600/gad17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="299" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLWOMgxseRI/AAAAAAAAAN8/hWygqdrwgFI/s640/gad17.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-4890274634357067696?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0GKWxNrL_Qo1zPlkFcRQm9zckE4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0GKWxNrL_Qo1zPlkFcRQm9zckE4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0GKWxNrL_Qo1zPlkFcRQm9zckE4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0GKWxNrL_Qo1zPlkFcRQm9zckE4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/i1eUujoZtcg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/4890274634357067696/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/10/adding-gadget-to-wso2-gadget-server.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4890274634357067696?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4890274634357067696?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/i1eUujoZtcg/adding-gadget-to-wso2-gadget-server.html" title="Adding a gadget to WSO2 Gadget Server using cApp" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_aXV36xqOS-8/TLWalNXi5HI/AAAAAAAAAOE/YoYGz8yK9J0/s72-c/Screenshot-2.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/10/adding-gadget-to-wso2-gadget-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUABSX48fCp7ImA9Wx5VGUk.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-8585881041021266371</id><published>2010-10-12T21:18:00.000-07:00</published><updated>2010-10-12T21:22:38.074-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-12T21:22:38.074-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wso2 cabon" /><category scheme="http://www.blogger.com/atom/ns#" term="eclipse" /><category scheme="http://www.blogger.com/atom/ns#" term="cApp" /><title>How to add a WSO2 Carbon server to cApps</title><content type="html">You can add WSO2 Carbon Servers to Carbon Studio and deploy, undeploy artefacts created from cApp. This is how you do it.&lt;br /&gt;
&lt;br /&gt;
1. You need to have a binary distribution of a WSO2 Carbon Server with you. For this post I will be using WSO2 Gadget Server. Download it from &lt;a href="http://wso2.org/downloads/gadget-server"&gt;here&lt;/a&gt; and extract.&lt;br /&gt;
&lt;br /&gt;
2. Install Carbon Studio in you eclipse IDE as described in here.&lt;br /&gt;
&lt;br /&gt;
3. In the 'Server view', right click and Select New &amp;gt; Server and the "New Server" wizard will appear.&lt;br /&gt;
&lt;br /&gt;
4. Scroll down in the servers types until and you'll see 'WSO2' at the very bottom. Expand this and there'll be two server types.&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; i. WSO2 Carbon 3.0.1 based Server&lt;br /&gt;
&amp;nbsp; ii. WSO2 Carbon 3.1 based Servers&lt;br /&gt;
Select the server type based on the binary you had extracted in step 1 above. I will be using 'WSO2 Carbon 3.0.1 based Server' which matches the distro I downloaded in step 1.&lt;br /&gt;
&lt;br /&gt;
5. After selecting the server type, you can change the 'Server's host name', 'Server Name' if you want or can leave with defaults.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUxJ9gHpJI/AAAAAAAAANM/k47meXJzPcI/s1600/gad12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUxJ9gHpJI/AAAAAAAAANM/k47meXJzPcI/s400/gad12.png" width="390" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
6. Then we need to set the 'Server runtime environment'. Click on the 'Add..' link next to 'Server runtime environment' field and it will open up a window for you to select the runtime.&lt;br /&gt;
&lt;br /&gt;
In this, browse for you Carbon Home, that is you need to browse for the location where you extracted the Carbon Server distribution. Press 'Finish' and return to parent window.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUxYkoKr9I/AAAAAAAAANQ/-nqqMjWtCcg/s1600/gad13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="347" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUxYkoKr9I/AAAAAAAAANQ/-nqqMjWtCcg/s400/gad13.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;7. In the parent window proced to the next step, where its asking you to set the ports for your server. You can accespt defeault ot change as you wish. In my case I am changing first two ports as the Gadget Server runs on 8080/8443 by default.&lt;br /&gt;
&lt;br /&gt;
You also can enable options such as;&lt;br /&gt;
&amp;nbsp; i.  Bring up the carbon home in the browser when this server starts -&lt;br /&gt;
Will launch server's admin console in you browser, after ther server is started via cApp.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ii. Enable hot update of published server modules -&lt;br /&gt;
Hot update feature will be enabled where all changes you do to your deplyed modules will be updated then and there (without you restarting the server).&lt;br /&gt;
&lt;br /&gt;
iii.Enable osgi console -&lt;br /&gt;
osgi prompt will appear at the server startup and you will be able run osgi commands on the start-up console.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TLUxu2FhTKI/AAAAAAAAANU/ZIU-dySPk08/s1600/gad14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TLUxu2FhTKI/AAAAAAAAANU/ZIU-dySPk08/s400/gad14.png" width="390" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
8. In the next step it will give you a panel where you can add\remove applications to your server. For the time being let's not add applications now and we'll only start the server. So press 'Finish'.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUx7kQPWNI/AAAAAAAAANY/u9nLjcfnK5A/s1600/gad15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUx7kQPWNI/AAAAAAAAANY/u9nLjcfnK5A/s400/gad15.png" width="387" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
9. Now you'll find your server appearing in the 'Server view'. Right click on it and select start from the menu. And the server will be gracefully started !!!.&lt;br /&gt;
&lt;div class="zemanta-pixie" style="height: 15px; margin-top: 10px;"&gt;&lt;a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"&gt;&lt;img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=d181e379-c3c1-463f-8dd2-51ebb438e4d4" style="border: medium none; float: right;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-8585881041021266371?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zWzAlWU0ietQZz4uIQxLVe2Gtlg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zWzAlWU0ietQZz4uIQxLVe2Gtlg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zWzAlWU0ietQZz4uIQxLVe2Gtlg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zWzAlWU0ietQZz4uIQxLVe2Gtlg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/1_KUag50UoA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/8585881041021266371/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/10/how-to-add-wso2-carbon-server-to-capps.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/8585881041021266371?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/8585881041021266371?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/1_KUag50UoA/how-to-add-wso2-carbon-server-to-capps.html" title="How to add a WSO2 Carbon server to cApps" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_aXV36xqOS-8/TLUxJ9gHpJI/AAAAAAAAANM/k47meXJzPcI/s72-c/gad12.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/10/how-to-add-wso2-carbon-server-to-capps.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUERHg_fSp7ImA9Wx5VEUU.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-767795636763540610</id><published>2010-09-28T09:51:00.000-07:00</published><updated>2010-10-04T02:56:45.645-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-04T02:56:45.645-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="gadgets" /><title>Gadgets - Lesson 2</title><content type="html">In the last lesson we introduced ModulePrefs as one of the main elements in a gadget. We also said it carries the gadget's characteristics such as its title, author, description etc.&lt;br /&gt;
&lt;br /&gt;
The sample gadget source below shows how these attributes should appear within ModulePrefs.&lt;br /&gt;
&lt;br /&gt;
&lt;pre name="code" class="xml"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Module&amp;gt;
 &amp;lt;ModulePrefs title="This is lession2" height="250" scaling="false" author="yumani"&amp;gt;
  &amp;lt;locale lang="en" country="us"/&amp;gt;
  &amp;lt;locale lang="ja" country="jp"/&amp;gt;
 &amp;lt;/ModulePrefs&amp;gt;
 
 &amp;lt;Content type="html"&amp;gt;
  &amp;lt;![CDATA
   Hello, World!
   ]]
 &amp;lt;/Content&amp;gt;
&amp;lt;/Module&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
ModulePrefs is also a container for features, metadata and processing rules. &amp;lt;locale&amp;gt; is one such elements. This is used to incorporate the internationalization feature to the gadget. It is a nested element within &amp;lt;ModulePrefs&amp;gt;.  You can see how it is used in the above code segment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-767795636763540610?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Qh00KxtSn8KSFdh5Ic3QtFf2rsQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Qh00KxtSn8KSFdh5Ic3QtFf2rsQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Qh00KxtSn8KSFdh5Ic3QtFf2rsQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Qh00KxtSn8KSFdh5Ic3QtFf2rsQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/8LCxbOR2Chs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/767795636763540610/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/09/gadgets-lesson-2.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/767795636763540610?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/767795636763540610?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/8LCxbOR2Chs/gadgets-lesson-2.html" title="Gadgets - Lesson 2" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/09/gadgets-lesson-2.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcCQ388fSp7ImA9Wx5WFko.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-4492956472092733607</id><published>2010-09-28T05:47:00.000-07:00</published><updated>2010-09-28T05:47:42.175-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-28T05:47:42.175-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="xml" /><category scheme="http://www.blogger.com/atom/ns#" term="gadgets" /><title>Gadgets  - Lesson 1</title><content type="html">&lt;b&gt;What is a gadget?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Whats ia a gadget, here are definitions from wikipedia and igoogle (as of 28 Sep, 10).&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;wikipedia:&lt;/u&gt;&lt;br /&gt;
&lt;i&gt;In the software industry, "gadget" refers to computer programs that provide services without needing an independent application to be launched for each one, but instead run in an environment that manages multiple gadgets. There are several implementations based on existing software development techniques, like JavaScript, form input, and various image formats.&lt;/i&gt; (wikipedia, 27,Sep 2010)&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;igoogle:&lt;/u&gt;&lt;br /&gt;
&lt;i&gt;Gadgets are simple &lt;a class="zem_slink" href="http://en.wikipedia.org/wiki/HTML" rel="wikipedia" title="HTML"&gt;HTML&lt;/a&gt; and JavaScript applications that can be embedded in webpages and other apps&lt;/i&gt; (http://code.google.com/apis/gadgets/).&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;So as it says from above a gadget is an application which is simple, and allows to put HTML/javascript code, and can be embedded in multiple web applications and viewed by many.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
In this post and few other posts following, I will be writing about different elements of gadgets. And here goes the first!!!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Let's start with basics&lt;/b&gt;&lt;br /&gt;
This is a basic Gadget. This shows the basic ingredients of a gadget - Module, Module Prefs, Content.&lt;br /&gt;
&lt;pre name="code" class="xml"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt; 
&lt;module&gt;
  &lt;moduleprefs title="hello world example" /&gt; 
  &lt;content type="html"&gt;
     &amp;lt;![CDATA[ 
       Hello, world!
     ]]&gt;
  &lt;/Content&gt; 
&lt;/Module&gt;
&amp;lt;/xml&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Module&lt;/b&gt;  &lt;br /&gt;
Denotes that it is a gadget. So you need to keep all your gadget source within &lt;module&gt; tags.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ModulePrefs&lt;/b&gt; &lt;br /&gt;
Holds the information about the gadget. This can include title of the gadget, description, hight, title_url, author, author_email, screen_shot, thumbnail.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Content&lt;/b&gt;&lt;br /&gt;
Says to which content type gadget belongs to; it can be "html" or "url". Means this can hold the HTML code or a link to an external content. &lt;content&gt; tag contains the real work of a gadget. It gives the programming logic and the HTML code for appearance.&lt;br /&gt;
&lt;br /&gt;
Other than above we also have; &lt;br /&gt;
&lt;b&gt;&amp;lt;?xml &amp;gt;&lt;/b&gt;&lt;br /&gt;
This line is to indicate the gadget code is of XML document type. The standard XML declaration we use for gadgets is &amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;. Means it supports xml 1.0 specification and unicode encoding type of UTF-8. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;lt;![CDATA[ &lt;/b&gt;&lt;br /&gt;
Indicates the data within these tags should not be passed by the XML parser. Hence all you HTML\jvascript code related to the gadgets appearance and programming logic should go here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-4492956472092733607?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q19XeOH26nkFfzrgnaGvgWZOXDU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q19XeOH26nkFfzrgnaGvgWZOXDU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Q19XeOH26nkFfzrgnaGvgWZOXDU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q19XeOH26nkFfzrgnaGvgWZOXDU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/ZPk5WL3gg0g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/4492956472092733607/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/09/gadgets-lesson-1.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4492956472092733607?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4492956472092733607?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/ZPk5WL3gg0g/gadgets-lesson-1.html" title="Gadgets  - Lesson 1" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/09/gadgets-lesson-1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMBSH47eSp7ImA9Wx5XE0o.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-598752654875394193</id><published>2010-09-13T03:06:00.000-07:00</published><updated>2010-09-13T03:07:39.001-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-13T03:07:39.001-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SSO" /><category scheme="http://www.blogger.com/atom/ns#" term="Stratos" /><title>Single Sign-On &amp; Single Sign-Out - user experience</title><content type="html">Single sign-on is "a session/user authentication process that permits a user to enter one name and password in order to access multiple applications. The process authenticates the user for all the applications they have been given rights to and eliminates further prompts when they switch applications during a particular session." - &lt;i&gt;Definition from Whatis.com&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
In Single sign-out the user will be signed-out from all authenticated applications at a single sign-out&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
WSO2 Stratos demonstrates the SSO concept very well. This is how user SSO experience in &lt;a href="https://cloud.wso2.com/"&gt;WSO2 Stratos&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Firstly, you need to create a domain and register you tenant in Stratos. There'll be two follow up emails. One to confirm you email address and the other to give your account details.&lt;br /&gt;
Following up the mails you can login to you Startos Manager page, or you can simply sign-in using the given admin credentials.&lt;br /&gt;
&lt;br /&gt;
The first page you see after sign-in from admin credentials is the Stratos Manager Home page. From here you can invoke various WSO2 products which appear as services.&lt;br /&gt;
With SSO enabled Stratos, you can access these services without having to re-login at each entrance point (at each point where it opens up a new service for you). It is because your username and password are already authenticated and you are permited to access these multiple applications.&lt;br /&gt;
&lt;br /&gt;
Afterwards, Say you have opened sevaral services where you were automatically logged-in and while you were working on one service (e.g. Cloud Gadgets), another has gone on a session expriration. No issues :), When you accessing the page it will nicely validate you by itself and make the service availble in a refreshed session.&lt;br /&gt;
&lt;br /&gt;
Now, if you signout from one of the software services by clicking the 'Sign-out' link, you will be automatically signed-out from all the accessed services. That's where you will notice that Single -sign-out is in place!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-598752654875394193?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2t66T3YdhsaFbN6zV9uu-vzV__Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2t66T3YdhsaFbN6zV9uu-vzV__Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2t66T3YdhsaFbN6zV9uu-vzV__Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2t66T3YdhsaFbN6zV9uu-vzV__Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/Cr31LqWV_SA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/598752654875394193/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/09/single-sign-on-single-sign-out-user.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/598752654875394193?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/598752654875394193?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/Cr31LqWV_SA/single-sign-on-single-sign-out-user.html" title="Single Sign-On &amp; Single Sign-Out - user experience" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>1</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/09/single-sign-on-single-sign-out-user.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMCQng_cSp7ImA9Wx5QE0k.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-8752332510252373118</id><published>2010-09-01T06:01:00.000-07:00</published><updated>2010-09-01T06:07:43.649-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-01T06:07:43.649-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="eclipse" /><category scheme="http://www.blogger.com/atom/ns#" term="cApp" /><title>Creating a WSO2 artifact using Eclipse</title><content type="html">As was shown in my previous article, we have a plugin which can be added to eclipse which will open you a development environment to create artefacts used in WSO2 products. Now lets see how we can create WSO2 product artefacts in this environment.&lt;br /&gt;
&lt;br /&gt;
So to start off with, you need to have eclipse IDE, (preferably, eclipse-jee-galileo) and install WSO2 cApp following the steps in &lt;a href="http://yumani.blogspot.com/2010/07/how-to-install-wso2-capp-in-ecliplse.html"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
After WSO2 cApp is installed and the IDE is restarted, do following;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Create a WSO2 project&lt;/b&gt;&lt;br /&gt;
Go to File &amp;gt; New &amp;gt; Project. This will open up the 'New Project' wizard.&lt;br /&gt;
You have two menu options for this:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;You can either select 'Carbon Application Project' option that appear at the beginning of the list.&lt;/li&gt;
&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TH45C5kKqiI/AAAAAAAAAM0/nZ_nlZ6dzV0/s1600/screen5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="481" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TH45C5kKqiI/AAAAAAAAAM0/nZ_nlZ6dzV0/s640/screen5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Or you can select 'WSO2' at the bottom, which will also give 'Carbon Application Project' when you expand it.&lt;/li&gt;
&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TH46WzXm6MI/AAAAAAAAAM4/j_LbD7Ec-OY/s1600/screen6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="462" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TH46WzXm6MI/AAAAAAAAAM4/j_LbD7Ec-OY/s640/screen6.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
In the next step, give your project a name and 'finish' the wizard.&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TH47am9IM_I/AAAAAAAAAM8/FWVRdMIReNI/s1600/screen7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="608" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TH47am9IM_I/AAAAAAAAAM8/FWVRdMIReNI/s640/screen7.png" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
Now you'll have a project created (with the name you gave) in the 'Project Explore'. Expand the project folder and you'll find its initial content as shown below;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TH5MDPPSmBI/AAAAAAAAANA/rP0t7PypWsY/s1600/screen8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="554" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TH5MDPPSmBI/AAAAAAAAANA/rP0t7PypWsY/s640/screen8.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;JRE System library &lt;/b&gt;- Jars from your java runtime&lt;/li&gt;
&lt;li&gt;&lt;b&gt;java-src&lt;/b&gt; -the place where you keep the java src files&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Artifacts&lt;/b&gt; - you will have this empty when you start. Later when you create an artifact, it will appear inside this.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;root-artifact.xml&lt;/b&gt; - Is the place which manages you project&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Server Roles&lt;/b&gt; - Server roles that you can specify for each of your artefact. &lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;2. Create an artifact&lt;/b&gt;&lt;br /&gt;
Double click on root-artifact.xml. Click on 'Create New Artifact' button. You will get a drop down menu, which will have all WSO2 artifacts that are supported up to now.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TH5OLpTXEDI/AAAAAAAAANI/a05YkusIJoU/s1600/screen8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="554" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TH5OLpTXEDI/AAAAAAAAANI/a05YkusIJoU/s640/screen8.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
From the menu simply select the artifact you need to create.&lt;br /&gt;
&lt;br /&gt;
I will explain how to create few ESB artefacts in my next posts.&lt;br /&gt;
&lt;div class="zemanta-pixie" style="height: 15px; margin-top: 10px;"&gt;&lt;a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"&gt;&lt;img alt="Enhanced by Zemanta" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=fc9cb4aa-0acf-4c23-aea6-e49436c06585" style="border: medium none; float: right;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-8752332510252373118?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cjywnsoV30DIWzGzMwuwQNcpVS4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cjywnsoV30DIWzGzMwuwQNcpVS4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cjywnsoV30DIWzGzMwuwQNcpVS4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cjywnsoV30DIWzGzMwuwQNcpVS4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/LGNCHazyZnI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/8752332510252373118/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/09/creating-wso2-artifact-using-eclipse.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/8752332510252373118?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/8752332510252373118?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/LGNCHazyZnI/creating-wso2-artifact-using-eclipse.html" title="Creating a WSO2 artifact using Eclipse" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_aXV36xqOS-8/TH45C5kKqiI/AAAAAAAAAM0/nZ_nlZ6dzV0/s72-c/screen5.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/09/creating-wso2-artifact-using-eclipse.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEASHY6eip7ImA9WxFaFU0.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-4080718078691006081</id><published>2010-07-16T03:01:00.000-07:00</published><updated>2010-07-18T20:04:09.812-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-18T20:04:09.812-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="eclipse" /><category scheme="http://www.blogger.com/atom/ns#" term="cApp" /><title>How to install WSO2 cApp in eclipse</title><content type="html">Am using eclipse-jee-galileo-linux-gtk.tar.gz for this. and a milestone release of WSO2 cApp plugin, which can be downloaded from &lt;a href="http://builder.wso2.org/%7Ecarbon/carbon_studio-1.0.0/M11/"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
1. Firstly extract you eclipse distribution and launch it.&lt;br /&gt;
&lt;br /&gt;
2. Then Go to Help menu and select "Install Software"&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TEAqrV-6iUI/AAAAAAAAAMY/ZURcD_A0q-A/s1600/install1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="372" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TEAqrV-6iUI/AAAAAAAAAMY/ZURcD_A0q-A/s400/install1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
3. Click on the 'Add' button at the top corner of the 'Install' DBox to add the location where the software resides.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TEAr0v3vQ7I/AAAAAAAAAMc/4G338OuVlR4/s1600/install.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="376" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TEAr0v3vQ7I/AAAAAAAAAMc/4G338OuVlR4/s400/install.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. In the 'Add site' DBox, click on 'Archive' button and navigate to the location where you downloaded WSO2 cApp plugin (wso2-eclipse-ide-tools-1.0.0.M11.zip).&lt;br /&gt;
&lt;br /&gt;
5. When the achive is added, all the software available in it will appear in the small text area below it.&lt;br /&gt;
Remember : You need to have "group items by category" checkbox unchecked.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TEAtllBquDI/AAAAAAAAAMg/I198fLI3kPM/s1600/Screenshot-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="373" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TEAtllBquDI/AAAAAAAAAMg/I198fLI3kPM/s400/Screenshot-1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
4. Out of the above list, select "WSO2 Carbon Studio Feature" and press Next to proceed and move on until completion. &lt;br /&gt;
&lt;br /&gt;
That's it. Now you have WSO2 cApp integrated to eclipse IDE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-4080718078691006081?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PXcyLFfsKF6Q3P-OvV5ztQjkb6A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PXcyLFfsKF6Q3P-OvV5ztQjkb6A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PXcyLFfsKF6Q3P-OvV5ztQjkb6A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PXcyLFfsKF6Q3P-OvV5ztQjkb6A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/Pkit8RLFt1A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/4080718078691006081/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/07/how-to-install-wso2-capp-in-ecliplse.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4080718078691006081?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/4080718078691006081?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/Pkit8RLFt1A/how-to-install-wso2-capp-in-ecliplse.html" title="How to install WSO2 cApp in eclipse" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_aXV36xqOS-8/TEAqrV-6iUI/AAAAAAAAAMY/ZURcD_A0q-A/s72-c/install1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/07/how-to-install-wso2-capp-in-ecliplse.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUMGQ3w6cSp7ImA9WxFVFkg.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-2856241490386163442</id><published>2010-06-13T21:53:00.000-07:00</published><updated>2010-06-15T20:03:42.219-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-15T20:03:42.219-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cloud" /><category scheme="http://www.blogger.com/atom/ns#" term="Stratos" /><title>WSO2 Stratos, the first 100% open source cloud platform for enterprise applications</title><content type="html">“At a time when IT developers can create a new application in one month, taking months to provision and deploy servers and systems no longer makes strategic or economic sense,” said Dr. Sanjiva Weerawarana, WSO2 founder and CEO.&lt;br /&gt;
&lt;br /&gt;
Read on @ &lt;a href="http://www.itpro.lk/node/6962"&gt;http://www.itpro.lk/node/6962&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-2856241490386163442?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LFchn_IRbM6Re2j09lrHjcF3qtM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LFchn_IRbM6Re2j09lrHjcF3qtM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LFchn_IRbM6Re2j09lrHjcF3qtM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LFchn_IRbM6Re2j09lrHjcF3qtM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/Y7lqXVBDvfQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/2856241490386163442/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/06/wso2-stratos-first-100-open-source.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2856241490386163442?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2856241490386163442?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/Y7lqXVBDvfQ/wso2-stratos-first-100-open-source.html" title="WSO2 Stratos, the first 100% open source cloud platform for enterprise applications" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/06/wso2-stratos-first-100-open-source.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEMSX8zeCp7ImA9WxFaEko.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-6224357005698743844</id><published>2010-06-09T22:57:00.000-07:00</published><updated>2010-07-16T03:04:48.180-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-16T03:04:48.180-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cloud" /><category scheme="http://www.blogger.com/atom/ns#" term="self servicing" /><category scheme="http://www.blogger.com/atom/ns#" term="multitanancy" /><category scheme="http://www.blogger.com/atom/ns#" term="Stratos" /><title>Testing Cloud Services</title><content type="html">WSO2 Stratos is a comprehensive, powerful PaaS solution which, WSO2 released newly. It is based on revolutionary Carbon platform and is a self-serving, multi-tenant, elastic runtime for private and public cloud infrastructures.&lt;br /&gt;
&lt;br /&gt;
In this new deployment, Stratos has enabled WSO2 products as services. With it whole WSO2 middle-ware platform is available in the cloud as services.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;So how was these services tested&lt;/i&gt;&lt;/b&gt;. As &lt;a href="http://wso2.com/about/leadership/paul_fremantle/"&gt;Paul&lt;/a&gt; has mentioned in one of his blog posts (&lt;a href="http://pzf.fremantle.org/2010/05/cloud-native.html"&gt;Cloud Native&lt;/a&gt;), there are a set of technical attributes that the team take account of, to work well in a cloud environment. Out of these, Mutlitanency and Self servicing abilities were tested with more emphasis in this alpha release.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: black;"&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: inherit;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Self Servicing&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;Self-service means creating and managing your own tenant in the Stratos application. With this one could register his own organization (&lt;span style="color: #cc0000;"&gt;tenant&lt;/span&gt;) and manage the services, users within it.&lt;br /&gt;
&lt;br /&gt;
How you do this:&lt;br /&gt;
&lt;br /&gt;
1. Access Stratos from &lt;a href="https://cloud.wso2.com/"&gt;https://cloud.wso2.com/&lt;/a&gt; and you will have &lt;span style="color: #cc0000;"&gt;Stratos Manager&lt;/span&gt; who is the entry point to wso2 cloud services. &lt;br /&gt;
2. Register a tenant in Startos Manager by going through the registration process that is available there in main page. This is a very simple process where you are asked to give only the domain name, administrator's credentials and security captcha. &lt;br /&gt;
&lt;br /&gt;
After a successful registration, you can sign-in to Stratos using the admin account which would be admin_name@domainname. For an example, if I have my domain as '&lt;span style="color: #134f5c;"&gt;ranaweera.lk&lt;/span&gt;' and administrator as &lt;span style="background-color: white;"&gt;'&lt;span style="background-color: #eeeeee; color: #0c343d;"&gt;admin&lt;/span&gt;&lt;/span&gt;', I can sign-in as '&lt;span style="color: #134f5c;"&gt;admin&lt;/span&gt;&lt;span style="background-color: white; color: #134f5c;"&gt;&lt;/span&gt;&lt;span style="color: #134f5c;"&gt;@ranaweera.lk&lt;/span&gt;'&lt;br /&gt;
&lt;br /&gt;
So that's about registering. This initial user is called the &lt;span style="color: #cc0000;"&gt;tenant-admin&lt;/span&gt;. After registering the organization, the tenant-admin can;&lt;br /&gt;
&amp;nbsp;- create users within it,&lt;br /&gt;
&amp;nbsp;- create various roles and assign users to them,&lt;br /&gt;
&amp;nbsp;- enable\disable services.&lt;br /&gt;
&lt;br /&gt;
Tenant-users can;&lt;br /&gt;
- login and access the enabled cloud services,&lt;br /&gt;
- deploy there own web services,&lt;br /&gt;
- deploy mashups,&lt;br /&gt;
- apply security, change policies, apply throttling, engage modules etc to these services.&lt;br /&gt;
&lt;br /&gt;
Few illustrative cases on this are;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Managing users:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
From Stratos Manager, if you access 'Users &amp;amp; Roles' option, it allows you to add new users and roles in addition to existing admin user and role. While adding roles you can select the set of permissions you need to assign to a certain role. A user can be assigned one or many roles and vice versa. This is similar to the user management functionality we already have in all WSO2 products.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TBBVWS5LXUI/AAAAAAAAAK4/-IsDT4VLtyg/s1600/users.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TBBVWS5LXUI/AAAAAAAAAK4/-IsDT4VLtyg/s640/users.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
These users who were added above, are called 'tenant users'.  A &lt;span style="color: #cc0000;"&gt;tenant user&lt;/span&gt; can login to 'Stratos Manager' from &lt;a href="https://cloud.wso2.com/"&gt;https://cloud.wso2.com/&lt;/a&gt;.&amp;nbsp; The user credentials that the admin assigned at the time the user was created must be used here. After signing-in to Stratos Manager, he will see all the cloud services that the tenant-admin has enabled for the tenant.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aXV36xqOS-8/TBBnM_CZ7AI/AAAAAAAAAK8/PcwhwMjtgPY/s1600/access.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_aXV36xqOS-8/TBBnM_CZ7AI/AAAAAAAAAK8/PcwhwMjtgPY/s640/access.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
He then can sign-in to the cloud services using the same credentials. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Theming:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
The tenant admin also can update the theme of his tenant by going to 'Theme' menu. There are few default themes as well as a 'customize' option.&lt;br /&gt;
&lt;br /&gt;
A theme&amp;nbsp; that is applied at the Cloud Manager level should be propagate to all the cloud services within that tenant. &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aXV36xqOS-8/TBBoLJeHu5I/AAAAAAAAALA/dLCHMdouwQ0/s1600/theme.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/_aXV36xqOS-8/TBBoLJeHu5I/AAAAAAAAALA/dLCHMdouwQ0/s640/theme.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Billing:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
This feature lets the billing information for the tenant viewable by the admin role. This component is still in development stages, so there'll be more to be said under this in future..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All the above can be done without a third party involvement making it 'self serving'.&lt;span style="color: #cc0000;"&gt; It is for the tenant administrator to manage with his tenant users. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: black;"&gt;&lt;span style="font-size: large;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Multitanancy&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
Mutlitanancy within Stratos is the ability it provides multiple organizations to register ,&amp;nbsp; Stratos Manager and work simultaneously, within their own domain. Like in our real world scenarios here the details of one organization should be private and shared only within it.&lt;br /&gt;
&lt;br /&gt;
Lets simulate a step by step procedure of creating this environment; &lt;br /&gt;
&lt;br /&gt;
1. First create a tenant (tenant A) and add users to it.&lt;br /&gt;
2. Create another tenant (tenat B) and add user to it too.&lt;br /&gt;
The tenant admin and users of tenant A could only access\view\edit services within their tenant. The admin and tenant users in tenant B are totally blind about the existent of tenant A.&lt;br /&gt;
&lt;br /&gt;
We can use this environment to run through scenarios such as below;&lt;br /&gt;
&lt;div style="color: #666666;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style="color: black;"&gt;&lt;i&gt;&lt;b&gt;Multitanancy in mashups (js services):&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;If the Cloud Mashup Sever was enabled as a service and tenant admin sign-in to it. He can create a javascript service in it. Lets say our admin has created a service which scrapes updates from a site and sends emails to a set of recipients. This service should be available for other tenant users to view and use. They should be able to edit it depending on the permissions granted by the admin. This mashup should appear in the service list with the author's name.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aXV36xqOS-8/TBBrExc6BOI/AAAAAAAAALE/wJUyfprmyrw/s1600/pic2_.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="http://1.bp.blogspot.com/_aXV36xqOS-8/TBBrExc6BOI/AAAAAAAAALE/wJUyfprmyrw/s640/pic2_.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Now if you sign-in to tenant-B. Neither the admin nor the users of tenant B can access or see the services created by tenant A users. Because the two domains are two seperate entities. &lt;br /&gt;
Of course there are a set of system samples which will be available for all users by default. These are deployed under 'system' user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Multitanancy in task-scheduling:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
If a user\admin from a tenant schedule a task, (This is available in Cloud Mashup Server, from Configure &amp;gt; Scheduled Tasks menu), it will be visible and operational only within the tenant which originated it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Multitanancy in gadgets:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
In the Cloud Gadget, it allows the users to add gadgets of their desire. It lets him design their own gadget environment by adding\editing\deleting new tabs, new gadgets in their environment. All these customization done by a user (may it be the tenant user or tenant admin) is strictly for that particular user's account. &lt;br /&gt;
&lt;br /&gt;
And, also these settings are not shared among tenants!&lt;br /&gt;
&lt;br /&gt;
Cloud Gadget also lets you a community feature which facilitates gadgets' rating and commenting. A comment or a rating submitted by one tenant user can be viewable by other tenant users. But they are not shared with another tenant.&lt;br /&gt;
&lt;br /&gt;
There's also a feature which gives you an update on the number of users who are using a particular gadget at a given time. This count is based on the users who use the gadget within a given tenant. It is not shared among tenants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Mutlitenancy in entitlement policies:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
You can create entitlement policies by going to Cloud Identity. These policies that you create in your tenant will be used only within it. And yes, these xcml policies can be used among the could services you have within your tenant.&lt;br /&gt;
&lt;br /&gt;
For an example you should be able to do what is said in &lt;a href="http://blog.facilelogin.com/2009/05/adding-fine-grained-authorization-for.html"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;Multitenancy in keystores/relying parties:&lt;br /&gt;
&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
Again, Cloud Identity lets you store your relying party certificates and keystores. Similar to other scenarios these also tenant specific and blind to other tenants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Likewise there's more and more scenarios you get to exercise and of course 'apply' in real world using WSO2 Stratos, which has whole of WSO2 middleware platform available in a single environment as services. Instead of having several servers started separately, here you have all the servers available at once. You can intercommunicate with them much easily.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-6224357005698743844?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aVWOmoAniZCBemZ-A_F-rq__Jb8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aVWOmoAniZCBemZ-A_F-rq__Jb8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aVWOmoAniZCBemZ-A_F-rq__Jb8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aVWOmoAniZCBemZ-A_F-rq__Jb8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/6JVjVLMvN1E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/6224357005698743844/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/06/testing-cloud-services.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/6224357005698743844?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/6224357005698743844?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/6JVjVLMvN1E/testing-cloud-services.html" title="Testing Cloud Services" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_aXV36xqOS-8/TBBVWS5LXUI/AAAAAAAAAK4/-IsDT4VLtyg/s72-c/users.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/06/testing-cloud-services.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcNRHcyeCp7ImA9Wx5WF04.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-7601709233596907094</id><published>2010-03-04T02:39:00.000-08:00</published><updated>2010-09-28T22:11:35.990-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-28T22:11:35.990-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wso2 cabon" /><category scheme="http://www.blogger.com/atom/ns#" term="database" /><category scheme="http://www.blogger.com/atom/ns#" term="mySQL" /><title>Creating a MySQL database for WSO2 Carbon 3.x.x products</title><content type="html">WSO2 Carbon products have an inbuilt H2 database. Additionally the Carbon framework allows you to switch to the databases such as Oracle, MSSQL,MySQL, Derby, DB2. &lt;br /&gt;
&lt;br /&gt;
You can easily switch between these databases by;&lt;br /&gt;
- creating a database schema within the relevant RDBMS&lt;br /&gt;
- point the configuration scripts to that db&lt;br /&gt;
- copy the drivers&lt;br /&gt;
- start the server with -Dsetup&lt;br /&gt;
I will describe these steps in a separate post.&lt;br /&gt;
&lt;br /&gt;
This post is about how you can manually configure the database. I will be using MySql in my illustration. And I will be using WSO2 Identity Server 3.0 -alpha releases for this.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Creating MySQL database for WSO2 Carbon&lt;br /&gt;
-----------------------------------------------------------------&lt;/b&gt;&lt;br /&gt;
1. Download a wso2 identity server 3.0 alpha release&lt;br /&gt;
&lt;br /&gt;
2. Navigate to the location where you have the mysql script. i.e. CARBON_HOME/dbscripts&lt;br /&gt;
&lt;br /&gt;
3. Open a command prompt from that location and login to mysql from cmd prompt&lt;br /&gt;
&lt;pre class="console"&gt;mysql -u root -p
&lt;/pre&gt;&lt;br /&gt;
4. Create a database. Create user and grant access&lt;br /&gt;
&lt;pre class="console"&gt;create database regdb;
GRANT ALL ON regdb.* TO regadmin@localhost IDENTIFIED BY "regadmin";
&lt;/pre&gt;&lt;br /&gt;
6. Run the mysql.sql script. This will configure the database.&lt;br /&gt;
&lt;pre class="console"&gt;use regdb;
source mysql.sql
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
7. Copy the database driver to CARBON_HOME\repository\components\lib. I used mysql-connector-java-5.1.7-bin.jar, which is the official JDBC driver for MySQL.  It can be downloaded from &lt;a href="http://dev.mysql.com/downloads/connector/j/"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Configure usermanager and registry scripts, which reside in CARBON_HOME/repository/conf&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;registry.xml&lt;/b&gt;&lt;br /&gt;
&lt;pre name="code" class="xml"&gt;&amp;lt;currentDBConfig&amp;gt;mysql-db&amp;lt;/currentDBConfig&amp;gt;
        &amp;lt;dbConfig name="mysql-db"&amp;gt;
            &amp;lt;url&amp;gt;jdbc:mysql://localhost:3306/regdb&amp;lt;/url&amp;gt;
            &amp;lt;userName&amp;gt;regadmin&amp;lt;/userName&amp;gt;
            &amp;lt;password&amp;gt;regadmin&amp;lt;/password&amp;gt;
            &amp;lt;driverName&amp;gt;com.mysql.jdbc.Driver&amp;lt;/driverName&amp;gt;
            &amp;lt;maxActive&amp;gt;80&amp;lt;/maxActive&amp;gt;
            &amp;lt;maxWait&amp;gt;6000&amp;lt;/maxWait&amp;gt;
            &amp;lt;minIdle&amp;gt;5&amp;lt;/minIdle&amp;gt;
       &amp;lt;/dbConfig&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;user-mgt.xml&lt;/b&gt;&lt;br /&gt;
&lt;pre name="code" class="xml"&gt;&amp;lt;Database&amp;gt;
         &amp;lt;URL&amp;gt;jdbc:mysql://localhost:3306/regdb&amp;lt;/URL&amp;gt;
         &amp;lt;UserName&amp;gt;regadmin&amp;lt;/UserName&amp;gt;
         &amp;lt;Password&amp;gt;regadmin&amp;lt;/Password&amp;gt;
         &amp;lt;Dialect&amp;gt;mysql&amp;lt;/Dialect&amp;gt;
         &amp;lt;Driver&amp;gt;com.mysql.jdbc.Driver&amp;lt;/Driver&amp;gt;
    &amp;lt;/Database&amp;gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-7601709233596907094?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VpmfZLTw8YqRPfQr1MPMBu0kous/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VpmfZLTw8YqRPfQr1MPMBu0kous/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VpmfZLTw8YqRPfQr1MPMBu0kous/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VpmfZLTw8YqRPfQr1MPMBu0kous/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/Pa_PH9LYIuQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/7601709233596907094/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/03/creating-mysql-database-for-wso2-carbon.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/7601709233596907094?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/7601709233596907094?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/Pa_PH9LYIuQ/creating-mysql-database-for-wso2-carbon.html" title="Creating a MySQL database for WSO2 Carbon 3.x.x products" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/03/creating-mysql-database-for-wso2-carbon.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkANR3Y5eCp7ImA9WxFaEko.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-6208565708177372727</id><published>2010-02-15T23:54:00.000-08:00</published><updated>2010-07-16T03:06:36.820-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-16T03:06:36.820-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="waterfall" /><category scheme="http://www.blogger.com/atom/ns#" term="agile" /><title>Agile or waterfall?</title><content type="html">Here's a short video which explains the difference between agile and waterfall models.&lt;br /&gt;
&lt;br /&gt;
&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/rhIu-hjvxc4&amp;rel=0&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/rhIu-hjvxc4&amp;rel=0&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-6208565708177372727?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nfcOd8VSWdTbsmnrk4Yrd60YAXs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nfcOd8VSWdTbsmnrk4Yrd60YAXs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nfcOd8VSWdTbsmnrk4Yrd60YAXs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nfcOd8VSWdTbsmnrk4Yrd60YAXs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/FedZvM6eVYs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/6208565708177372727/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/02/agile-or-waterfall.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/6208565708177372727?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/6208565708177372727?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/FedZvM6eVYs/agile-or-waterfall.html" title="Agile or waterfall?" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/02/agile-or-waterfall.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8BQ3w7fCp7ImA9WxFaEko.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-1621367884819139198</id><published>2010-02-08T20:09:00.000-08:00</published><updated>2010-07-16T03:07:32.204-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-16T03:07:32.204-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="selenium rc" /><category scheme="http://www.blogger.com/atom/ns#" term="jUnit" /><category scheme="http://www.blogger.com/atom/ns#" term="data file" /><title>Accessing a datafile through Selenium RC</title><content type="html">In our testing most of us require to call data from a data storage and execute our tests to confirm various validations work as expected, different conditions are met etc. &lt;br /&gt;
&lt;br /&gt;
Below is a code snippet that I used in calling data used in a .txt file in validating a simple test in user name password based sign-in process. I was on Selenium RC/JUnit/Java platform in this.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush: java"&gt;public class SignIn extends SeleneseTestCase {

public void setUp() throws Exception {
   setUp("https://localhost:9443/carbon/", "*chrome");
}

   public void testSignInValdation() throws Exception {
       BufferedReader in = null;
       InputStreamReader inputStream = null;

       inputStream = new InputStreamReader(new FileInputStream("C:" + File.separator + "signin.txt"));
       in = new BufferedReader(inputStream);
       String line = null;

       while ((line = in.readLine()) != null) {
            System.out.println("password: " + line);
            selenium.open("/carbon/admin/login.jsp");
            selenium.waitForPageToLoad("30000");
            selenium.type("txtUserName", "yumani");
            selenium.type("txtPassword", line);
            selenium.click("//input[@value='Sign-in']");
            selenium.waitForPageToLoad("30000");
       }
   }
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-1621367884819139198?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/10JfK3ygpiMvy6G2AHoQGioAzZQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/10JfK3ygpiMvy6G2AHoQGioAzZQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/10JfK3ygpiMvy6G2AHoQGioAzZQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/10JfK3ygpiMvy6G2AHoQGioAzZQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/gsV-8byGBrc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/1621367884819139198/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/02/accessing-datafile-through-selenium-rc.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/1621367884819139198?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/1621367884819139198?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/gsV-8byGBrc/accessing-datafile-through-selenium-rc.html" title="Accessing a datafile through Selenium RC" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/02/accessing-datafile-through-selenium-rc.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8NQ3s_fyp7ImA9WxFaEko.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-2025728159597701278</id><published>2010-02-04T19:37:00.000-08:00</published><updated>2010-07-16T03:08:12.547-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-16T03:08:12.547-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wso2 cabon" /><category scheme="http://www.blogger.com/atom/ns#" term="websphere" /><title>Deploying WSO2 Carbon 2.0.x in IBM WebSphere Application Server 6.1</title><content type="html">I have converted one of the &lt;a href="http://yumani.blogspot.com/2009/09/how-to-deploy-wso2-identity-server-in.html"&gt;past blog&lt;/a&gt; posts into an article and its now published in WSO2 Oxygen Tank -Library.&lt;br /&gt;
&lt;br /&gt;
Its titled as "&lt;b&gt;Deploying WSO2 Carbon 2.0.x in IBM WebSphere Application Server 6.1&lt;/b&gt;". Is available &lt;a href="http://wso2.org/library/tutorials/deploying-wso2-carbon-2-0-x-ibm-websphere-application-server-6-1"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-2025728159597701278?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dZlqWGFhjx-Ws61Q7IQ0RPeedZM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dZlqWGFhjx-Ws61Q7IQ0RPeedZM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dZlqWGFhjx-Ws61Q7IQ0RPeedZM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dZlqWGFhjx-Ws61Q7IQ0RPeedZM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/zFW5x5D1lHI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/2025728159597701278/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/02/deploying-wso2-carbon-20x-in-ibm.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2025728159597701278?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/2025728159597701278?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/zFW5x5D1lHI/deploying-wso2-carbon-20x-in-ibm.html" title="Deploying WSO2 Carbon 2.0.x in IBM WebSphere Application Server 6.1" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/02/deploying-wso2-carbon-20x-in-ibm.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4HR3o6eSp7ImA9WxFaEko.&quot;"><id>tag:blogger.com,1999:blog-6753730558880804866.post-8131700462781554827</id><published>2010-02-02T19:16:00.000-08:00</published><updated>2010-07-16T03:08:56.411-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-16T03:08:56.411-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cloud" /><category scheme="http://www.blogger.com/atom/ns#" term="selenium" /><title>Cloud and open source meet to test Web apps</title><content type="html">Start-up Sauce Labs receives funding to support open-source Selenium project on-premise and in the cloud.&lt;br /&gt;
&lt;br /&gt;
Blog post by Dave Rosenberg on Software, Interrupted.&lt;br /&gt;
&lt;a href="http://news.cnet.com/8301-13846_3-10437699-62.html"&gt;http://news.cnet.com/8301-13846_3-10437699-62.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6753730558880804866-8131700462781554827?l=yumani.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pekgzz-5WcwW__FthKcab3uPgvE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pekgzz-5WcwW__FthKcab3uPgvE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pekgzz-5WcwW__FthKcab3uPgvE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pekgzz-5WcwW__FthKcab3uPgvE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/YumanisBlog/~4/h-2rvXon-jU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://yumani.blogspot.com/feeds/8131700462781554827/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://yumani.blogspot.com/2010/02/cloud-and-open-source-meet-to-test-web.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/8131700462781554827?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6753730558880804866/posts/default/8131700462781554827?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/YumanisBlog/~3/h-2rvXon-jU/cloud-and-open-source-meet-to-test-web.html" title="Cloud and open source meet to test Web apps" /><author><name>Yumani Ranaweera</name><uri>http://www.blogger.com/profile/01440428243489858364</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="32" src="http://4.bp.blogspot.com/_aXV36xqOS-8/SZUYZtKWEyI/AAAAAAAAACI/B2Jkq1b-deo/S220/BLOG.JPG" /></author><thr:total>0</thr:total><feedburner:origLink>http://yumani.blogspot.com/2010/02/cloud-and-open-source-meet-to-test-web.html</feedburner:origLink></entry></feed>

