tag:blogger.com,1999:blog-43488092687200154032024-03-14T05:22:06.331-07:00Kasun's BlogKasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-4348809268720015403.post-73077098090168170342016-12-03T00:45:00.001-08:002016-12-03T00:45:14.969-08:00Shorten ssh command using config file<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
If you are accessing remote servers frequently using ssh. You can save your ssh configuration (server Ip, port, user, key) to a file and reuse this configuration without entering these details repeatedly. This provides cleaner approach for ssh commands than creating command aliases (ex: alias qa-services='ssh -i ~/.ssh/key/services.pem ubuntu@124.17.27.185 -p 22' )<br />
<br />
SSH client obtains configuration data from the following sources in the bellow order:<br />
<br />
1. command-line options<br />
2. user's configuration file (~/.ssh/config)<br />
3. system-wide configuration file (/etc/ssh/ssh_config)<br />
<br />
<br />
We are going set the configuration in user's configuration file<br />
<br />
Create a ssh client user configuration file in '~/.ssh/' directory with file name 'config'<br />
<br />
Add following content to the file (~/.ssh/config)<br />
<br />
<br /></div>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> Host qa-services
HostName 124.17.27.185
User ubuntu
Port 22
IdentityFile ~/.ssh/key/services.pem
Host prod-db
HostName 124.21.151.26
User ubuntu
Port 22
IdentityFile ~/.ssh/key/db.pem </code></pre>
<br />
<br />
Configuration keywords :<br />
HostName - hostname or public ip address.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> User - Specifies the user to log in as.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> Port - Specifies the port number to connect on the remote host.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> IdentityFile - Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA authentication identity is read.<br />
<br />
Save the config file. Now you can access to your servers with simple commands like below.<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> ssh qa-services </code></pre>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> ssh prod-db</code></pre>
</div>
Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-31854353021487469602015-12-14T06:08:00.001-08:002015-12-14T06:08:30.722-08:00HMAC Authentication<div dir="ltr" style="text-align: left;" trbidi="on">
In this short article I'm going to explain about HMAC authentication and how it works.<br />
<br />
<h4 style="text-align: left;">
<b>What is HMAC authentication? </b></h4>
<div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
HMAC (Hash-based message authentication code) authentication provides a simple way to authenticate and verify the data integrity of a HTTP request using cryptographic hash function in combination with a secret key that is known to client and server.</div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
We can use any cryptographic hash function such as MD5 or SHA-1 to do the calculation of an HMAC, we term the resulting algorithm as HMAC-MD5 or HMAC-SHA1 accordingly. </div>
</div>
<div style="text-align: justify;">
<br /></div>
<h4 style="text-align: justify;">
Why HMAC?</h4>
<div>
<br /></div>
<div style="text-align: justify;">
If you want to have a secure communication between client and server which guarantee the authenticity and data integrity of the request. Then HMAC is the right solution for you. </div>
<div style="text-align: justify;">
<br /></div>
<h4 style="text-align: justify;">
How HMAC authentiation works?</h4>
<div>
<br /></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuMLOyKh-tKSHxCidE7frpf_18SYTllzilQYQGZmP5lhisEpHlmH8uDL9lgSLx77eO-jaRym1AWw9h5nWMROy_l6p61yFwvs389iDMqmaQTG1IXPE42ZjhJcZKnlDOGjxPjYX2KSEkNFI/s1600/HMAC-Authentication.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="140" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuMLOyKh-tKSHxCidE7frpf_18SYTllzilQYQGZmP5lhisEpHlmH8uDL9lgSLx77eO-jaRym1AWw9h5nWMROy_l6p61yFwvs389iDMqmaQTG1IXPE42ZjhJcZKnlDOGjxPjYX2KSEkNFI/s400/HMAC-Authentication.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
As you can see in the diagram. Both Client and server have a shared secret key. Client will use this key to calculate the signature of the message using a cryptographic hash function, then message + header will be sent to the server. Once server receive the message it will also start calculating the HMAC signature of the message using the shared secret key. Now it will verify the signature it receives and the result signature calculated at the server end. If both match, request will be accepted otherwise it will reject by the server. </div>
<h4 style="text-align: left;">
<br />Advantages of cryptographic hash function</h4>
<div>
<br /></div>
<div>
<div>
<ul style="text-align: left;">
<li>Easy to compute the hash value for any given message - HMAC signature calculation take less computing power.</li>
</ul>
</div>
<div>
<ul style="text-align: left;">
<li>In-feasible to generate a message from its hash - Different message attributes can be used to calculate the signature, so with this feature no one can identify the way we calculate the HMAC signature.</li>
</ul>
</div>
<div>
<ul style="text-align: left;">
<li>In-feasible to modify a message without changing the hash - No one can modify the message without knowing the key. </li>
</ul>
</div>
<div>
<ul style="text-align: left;">
<li>In-feasible to find two different messages with the same hash - No one can modify the message. </li>
</ul>
<div>
<br /></div>
</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
This doesn't grantee the replay attack, in order to avoid that we can include time-stamp while calculating the signature, It will help to expire the message after certain time period.</div>
<div>
<br /></div>
<div>
I hope now it is clear how HMAC works and how it will guarantee the authenticity and data integrity of the request.</div>
</div>
<div>
<br /></div>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<br />
<ins class="adsbygoogle" data-ad-client="ca-pub-0292534626289806" data-ad-slot="9665442321" style="display: inline-block; height: 60px; width: 468px;"></ins><script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com1tag:blogger.com,1999:blog-4348809268720015403.post-23670704445918509042014-06-17T03:00:00.001-07:002014-11-19T08:45:40.318-08:00Ubuntu - Gnu parallel - It's awesome<div dir="ltr" style="text-align: left;" trbidi="on">
GNU parallel is a shell package for executing jobs in parallel using one or more nodes. If you have used xargs in shell scripting then you will find it easier to learn GNU parallel,<br />
because GNU parallel is written to have the same options as xargs. If you write loops in shell, you will find GNU parallel may be able to replace most of the loops and make them run faster by running several jobs in parallel.<br />
<br />
<u>To install the package</u><br />
<br />
<b>sudo apt-get install parallel</b><br />
<br />
Here is an example of how to use GNU parallel.<br />
<br />
If you have a directory which is having large log files and if you need to compute no of lines per each file and get the largest file. You can do it efficiently with GNU Parallel and it can utilize all your cpu cores in the server very efficient way.<br />
<br />
In this case most heavier operation is calculating the number of lines of each file, instead of doing this operation sequentially we can do this operation parallely using GNU Parallel.<br />
<br />
<u>Sequencial way</u><br />
<br />
<b>ls | xargs wc -l | sort -n -r | head -n 1</b><br />
<br />
<u>Parallel way</u><br />
<br />
<b>ls | parallel wc -l | sort -n -r | head -n 1</b><br />
<br />
<br />
This is only one example, like this you can optimize your operations using GNU parallel. :)<br />
<div>
<br /></div>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-7989169345050637512014-05-30T00:37:00.000-07:002014-11-19T08:46:30.377-08:00Shell script edited on windows - Issue when executing on linux<div dir="ltr" style="text-align: left;" trbidi="on">
I faced the above issue when I'm trying to execute the script after doing some editing on windows. Those two issues are due to BOM character and the carriage return (\r) present in the file.<br />
<br />
<br />
<ul style="text-align: left;">
<li>BOM (byte order mark) character - This is a Unicode character used to signal the order of bytes in a text file or stream.</li>
<li>Carriage return (\r) - Editors use in windows needs '\r' and '\n' both the characters together to interpret as new line, which is ‘\r\n’. But unix understand only (\n).</li>
</ul>
<div>
<br /></div>
<br />
These above characters use in windows, but unix shell scripts won't understand those characters. Because of that you might face issues when running a bash script editted in windows. To fix this you need to remove those characters. This is how you can do it.<br />
<br />
<u><b>BOM character issue</b></u><br />
You might see following issue from the first line of the script.<br />
<br />
<span style="color: #cc0000;">": No such file or directory1: #!/bin/bash"</span> - If you get such kind of issue from 1st line of your script then you can cross-check the script and if there is no any visible issue. you can run the<br />
following command.<br />
<br />
$ <b>head -n 1 your_script.sh | LC_ALL=C od -tc</b><br />
$<span style="color: lime;"> </span><span style="color: #38761d;">0000000 357 273 277 # ! / b i n / b a s h \r \n</span><br />
<br />
In the output if you can see "357 273 277" sequence, then this is the BOM character. So you need to remove it.<br />
<br />
* Open the script using vim<br />
* Type this and enter in the first line - ":set nobomb" - this will remove the BOM character from ur file.<br />
* save the file and close - :wq<br />
<br />
<u><b>Carriage return issue</b></u><br />
<br />
Carriage return present in the script might throw this issue.<br />
<br />
<span style="color: #cc0000;">"$'\r': command not found"</span><br />
<span style="color: #cc0000;">"syntax error near unexpected token `$'do\r''"</span><br />
<br />
To fix this you need to remove the \r characters from your script. Use any unix way to replace \r character with empty string.<br />
<br />
* String replace using sed command<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> $ </span><b>sed -i 's/\r//g' your_script.sh</b><br />
<br />
* String replace using perl<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> $<b> </b></span><b>perl -pi -e 's/\r//g' your_script.sh</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<br />
Now the script is ready to run in unix :)<br />
<div>
<br /></div>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com1Singapore1.352083 103.819836000000010.84410649999999987 103.174389 1.8600595 104.46528300000001tag:blogger.com,1999:blog-4348809268720015403.post-31666767892505289382013-06-27T01:39:00.000-07:002014-11-19T08:46:39.480-08:00Article on Monitor Your Key Performance Indicators using WSO2 BAM.<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
I've written an article for WSO2 library explaining how to <a href="http://wso2.com/library/articles/2013/06/monitor-your-kpis-using-wso2-bam">Monitor your Key Performance Indicators using WSO2 BAM </a><br />
<br />
WSO2 <a href="http://wso2.com/products/business-activity-monitor/">BAM</a> an enterprise-ready, fully-open source, complete solution for aggregating, analyzing and presenting information about business activities also it supports big data analytics and storage capability via Apache Hadoop, Hive and Cassandra.<br />
<br />
This article focuses on KPI monitoring via <a href="http://wso2.com/products/business-activity-monitor/">WSO2 BAM</a>. The article flows based on the following topics.<br />
<br />
<br />
<br />
<ul style="text-align: left;">
<li>Introduction</li>
<li>BAM architecture</li>
<li>Use case</li>
<ul>
<li>KPIs for this use case</li>
</ul>
<li>Collect information for the usecase.</li>
<ul>
<li><span class="Apple-tab-span" style="white-space: pre;"> </span>BAM data-agent (Java API)</li>
<li><span class="Apple-tab-span" style="white-space: pre;"> </span>Non Java Data-agent</li>
<li><span class="Apple-tab-span" style="white-space: pre;"> </span>REST API</li>
</ul>
<li>Viewing collected information using Cassandra explorer</li>
<li>Data Analysis</li>
<ul>
<li>Writing a hive script for analyzing captured data</li>
</ul>
<li>Visualizing the KPIs.</li>
</ul>
<br />
<div>
<br /></div>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com3tag:blogger.com,1999:blog-4348809268720015403.post-59760202921700815692012-10-23T05:45:00.002-07:002014-11-19T08:46:50.455-08:00Configuring Hive metastore to remote database - WSO2 BAM2 <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b><span style="font-family: Times, Times New Roman, serif;">Hive Metastore</span></b><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;">Hive metastore is the central repository which is used to store Hive metadata. We use embedded H2 database as the default hive metastore. Therefore only one hive session can access the metastore. </span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;"><b>Using remote MYSQL database as Hive metastore. </b></span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;">You can configure hive metastore to MYSQL database as follows. </span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;">Edit hive-site.xml located at WSO2_BAM2_HOME/repository/conf/advanced/ directory.</span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<br />
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small;"><span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>javax.jdo.option.ConnectionURL<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>jdbc:mysql://localhost/test_database<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>JDBC connect string for a JDBC metastore<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>javax.jdo.option.ConnectionDriverName<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>com.mysql.jdbc.Driver<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>Driver class name for a JDBC metastore<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>javax.jdo.option.ConnectionUserName<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>root<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>username to use against metastore database<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>javax.jdo.option.ConnectionPassword<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">name</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>root<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">value</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"><</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>password to use against metastore database<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">description</span><span class="kwrd" style="color: blue;">></span>
<span class="kwrd" style="color: blue;"></</span><span class="html" style="color: maroon;">property</span><span class="kwrd" style="color: blue;">></span></pre>
<br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;">Put MYSQL driver into WSO2_BAM2_HOME/repository/components/lib</span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span>
<span style="font-family: Times, Times New Roman, serif;">Now You have successfully configured the hive metastore to MYSQL database. Now restart the <a href="http://wso2.com/products/business-activity-monitor/">BAM</a> server. </span></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com2tag:blogger.com,1999:blog-4348809268720015403.post-13363379004371597332012-10-06T03:31:00.003-07:002014-11-19T08:47:00.664-08:00A Fix for Huawei E220 connection issue with ubuntu 12.04<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br class="Apple-interchange-newline" />After installing Ubuntu 12.04, I faced an issue when connecting to the internet from my Huawei E220 dongle. So I did some google search and found a bug report relating this[1]. After going through this issue I found a workaround which fix the issue.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
This is the workaround.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
You should execute following command as root.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
echo -e "AT+CNMI=2,1,0,2,0\r\nAT\r\n" > /dev/ttyUSB1 </div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
Now try to connect your dongle again, it works for me until dongle is removed from USB port. Thanks Nikos for your workaround :)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;">
[1] <a href="https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/868034" style="color: #1155cc;" target="_blank">https://bugs.launchpad.net/<wbr></wbr>ubuntu/+source/modemmanager/+<wbr></wbr>bug/868034</a></div>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-60342744247248963962012-09-08T05:42:00.001-07:002014-11-19T08:47:11.893-08:00WSO2 Business Activity Monitor 2.0.0 released ....!!!!<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<span style="font-family: Georgia, 'Times New Roman', serif;">We spent almost year for releasing the WSO2 BAM 2.0.0 after completely re-writing it twice from BAM 1.x.x to BAM 2.0.0 according to new architecture, suggestions and improvements. Finally we released it today, below you can see the release note of the BAM 2.0.0 :) </span></div>
<span style="font-family: Georgia, 'Times New Roman', serif;"><br />
<u style="background-color: white; color: #333333; line-height: 17.33333396911621px; text-align: justify;"><b>WSO2 Business Activity Monitor 2.0.0 released!</b></u></span><br />
<span style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span><br />
<div style="background-image: none; line-height: 17.33333396911621px; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify !important;">
<span style="font-family: Georgia, 'Times New Roman', serif;">The WSO2 Business Activity Monitor (WSO2 BAM) is an <strong>enterprise-ready</strong>, <strong>fully-<wbr></wbr>open source</strong>, <strong>complete</strong> solution for aggregating, analyzing and presenting information about business activities. The aggregation refers to collection of data, analysis refers to manipulation of data in order to extract information, and presentation refers to representing this data visually or in other ways such as alerts. The WSO2 BAM architecture reflects this natural flow in its design.</span></div>
<div style="line-height: 17.33333396911621px;">
<div>
<div style="background-image: none; line-height: 13pt; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify !important;">
<span style="font-family: Georgia, 'Times New Roman', serif;">Since all WSO2 products are based on the component-based WSO2 Carbon platform, WSO2 BAM is <strong>lean, lightweight</strong> and consists of only the required components for efficient functioning. It does not contain unnecessary bulk, unlike many over-bloated, proprietary solutions. WSO2 BAM comprises of only required modules to give the best of performance, scalability and customizability, allowing businesses to achieve time-effective results for their solutions without sacrificing performance or the ability to scale.</span></div>
<div style="background-image: none; line-height: 13pt; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify !important;">
</div>
<div style="background-image: none; line-height: normal; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; line-height: 17.33333396911621px;">The product is available for download at: <a href="http://wso2.com/products/business-activity-monitor" target="_blank">http://wso2.com/products/<wbr></wbr>business-activity-monitor</a></span></div>
<div style="background-image: none; line-height: normal; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif;">The documentation is available at: <a href="http://docs.wso2.org/wiki/display/BAM200/WSO2+Business+Activity+Monitor+Documentation" target="_blank">http://docs.wso2.org/wiki/<wbr></wbr>display/BAM200/WSO2+Business+<wbr></wbr>Activity+Monitor+Documentation</a></span></div>
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span>
<div style="background-image: none; color: #333333; line-height: 13pt; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify !important;">
</div>
<ul style="line-height: 19px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: start;">
<li style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; margin-left: 15px; padding-bottom: 10px; padding-right: 30px; padding-top: 10px;"><h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<u><span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Key Features</span></u></h3>
<h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Collect & Store any Type of Business Events</span></h3>
<ul style="list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 25px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Events are named, versioned and typed by event source</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Event structure consists of (name, value) tuples of business data, metadata and correlation data</span></li>
</ul>
</li>
<li style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; margin-left: 15px; padding-bottom: 10px; padding-right: 30px; padding-top: 10px;"><h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">High Performance Data Capture Framework</span></h3>
<ul style="list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 25px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">High performance, low latency API for receiving large volumes of business events over various transports including Apache Thrift, REST, HTTP and Web services</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Scalable event storage into Apache Cassandra using columns families per event type</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Non-blocking, multi-threaded, low impact Java Agent SDK for publishing events from any Java based system</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Use of Thrift, HTTP and Web services allows event publishing from any language or platform</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Horizontally scalable with load balancing and high available deployment</span></li>
</ul>
</li>
<li style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; margin-left: 15px; padding-bottom: 10px; padding-right: 30px; padding-top: 10px;"><h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Pre-Built Data Agents for all WSO2 Products</span></h3>
<ul style="list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 25px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Service Data Agent for all service hosting products including <a href="http://wso2.com/products/application-server" style="text-decoration: none;" target="_blank">WSO2 Application Server</a>, <a href="http://wso2.com/products/business-process-server" style="text-decoration: none;" target="_blank">Business Process Server</a>, <a href="http://wso2.com/products/data-services-server" style="text-decoration: none;" target="_blank">Data Services Server</a>, <a href="http://wso2.com/products/enterprise-service-bus" style="text-decoration: none;" target="_blank">Enterprise Service Bus</a>and <a href="http://wso2.com/products/business-rules-server" style="text-decoration: none;" target="_blank">Business Rules Server</a></span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Mediation Data Agent for WSO2 Enterprise Service Bus</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Reusable service data and mediation data model for integrating with other service hosting and mediation systems</span></li>
</ul>
</li>
<li style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; margin-left: 15px; padding-bottom: 10px; padding-right: 30px; padding-top: 10px;"><h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Scalable Data Analysis Powered by Apache Hadoop</span></h3>
<ul style="list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 25px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">SQL-like flexibility for writing analysis algorithms via Apache Hive</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Extensibility via analysis algorithms implemented in Java</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Schedulable analysis tasks</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Results from analysis can be stored flexibly, including in Apache Cassandra, a relational database or a file system</span></li>
</ul>
</li>
<li style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; margin-left: 15px; padding-bottom: 10px; padding-right: 30px; padding-top: 10px;"><h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Powerful Dashboards and Reports</span></h3>
<ul style="list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 25px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Tools for creating customized dashboards with zero code</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Ability to write arbitrary dashboards powered by Google Gadgets and {JaggeryJS}</span></li>
</ul>
</li>
</ul>
</div>
</div>
<div>
<ul style="line-height: 19px; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-bottom-width: 1px; margin-left: 15px; padding-bottom: 10px; padding-right: 30px; padding-top: 10px;"><h3 style="line-height: 20px; margin-bottom: 10px; margin-top: 0px;">
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Installable Toolboxes</span></h3>
<ul style="list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 0px; margin-left: 25px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Installable artifacts to cover complete use cases</span></li>
<li style="list-style-image: initial; list-style-position: initial; list-style-type: circle; margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">One click install to deploy all artifacts for a use case</span></li>
</ul>
</li>
</ul>
</div>
<div>
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div>
<div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<u><b><span style="font-family: Georgia, 'Times New Roman', serif;">Issues Fixed in This Release</span></b></u></div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;">All fixed issues have been recorded at - <a href="http://bit.ly/Tzb1VP" target="_blank">http://bit.ly/Tzb1VP</a></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<b><u><span style="font-family: Georgia, 'Times New Roman', serif;">Known Issues in This Release</span></u></b></div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<span style="font-family: Georgia, 'Times New Roman', serif;">All known issues have been recorded at - <a href="http://bit.ly/TzberZ" target="_blank">http://bit.ly/TzberZ</a></span></div>
<div style="background-color: white; text-align: -webkit-auto;">
<h2>
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;"><u>Engaging with Community</u></span></h2>
<h3>
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Mailing Lists</span></h3>
<span style="font-family: Georgia, 'Times New Roman', serif;">Join our mailing list and correspond with the developers directly.</span><br />
<ul>
<li style="margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">Developer List : <a href="mailto:dev@wso2.org" target="_blank">dev@wso2.org</a> | <a href="mailto:dev-request@wso2.org?subject=subscribe" target="_blank">Subscribe</a> | <a href="http://wso2.org/mailarchive/dev/" target="_blank">M<wbr></wbr>ail Archive</a></span></li>
<li style="margin-left: 15px;"><span style="font-family: Georgia, 'Times New Roman', serif;">User List : <a href="mailto:user@wso2.org" target="_blank">user@wso2.org</a> | <a href="mailto:user-request@wso2.org?subject=subscribe" target="_blank">Subscribe</a> | <a href="http://wso2.org/mailarchive/user/" target="_blank"><wbr></wbr>Mail Archive</a></span></li>
</ul>
<h3>
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Reporting Issues</span></h3>
<span style="font-family: Georgia, 'Times New Roman', serif;">WSO2 encourages you to report issues, enhancements and feature requests for WSO2 BAM. Use the <a href="http://wso2.org/jira/browse/bam" target="_blank">issue tracker</a> for reporting issues.</span><br />
<h3>
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;">Discussion Forums</span></h3>
<span style="font-family: Georgia, 'Times New Roman', serif;">We encourage you to use <a href="http://stackoverflow.com/" target="_blank">stackoverflow</a> (with the wso2 tag) to engage with developers as well as other users.</span><br />
<h2>
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;"><u>Training</u></span></h2>
<span style="font-family: Georgia, 'Times New Roman', serif;">WSO2 Inc. offers a variety of professional Training Programs, including training on general Web services as well as WSO2 Business Activity Monitor and number of other products. For additional support information please refer to <a href="http://wso2.com/training/" target="_blank">http://wso2.com/training/</a><a href="http://wso2.com/training/" target="_blank"></a></span><br />
<span style="font-family: Georgia, 'Times New Roman', serif;"><br /></span>
<h2>
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: small;"><u>Support</u></span></h2>
<span style="font-family: Georgia, 'Times New Roman', serif;">We are committed to ensuring that your enterprise middleware deployment is completely supported from evaluation to production. Our unique approach ensures that all support leverages our open development methodology and is provided by the very same engineers who build the technology.</span><br />
<span style="font-family: Georgia, 'Times New Roman', serif;">For additional support information please refer to<a href="http://wso2.com/support/" target="_blank">http://wso2.com/support/</a></span><br />
<span style="font-family: Georgia, 'Times New Roman', serif;">For more information on WSO2 BAM, and other products from WSO2, visit the <a href="http://wso2.com/" target="_blank">WSO2 website</a>.</span><br />
<hr />
<span style="font-family: Georgia, 'Times New Roman', serif;">We welcome your feedback and would love to hear your thoughts on this release of WSO2 BAM.</span><br />
<span style="font-family: Georgia, 'Times New Roman', serif;"><b><i>The WSO2 BAM Development Team</i></b></span><br />
<div>
<span style="font-family: arial, helvetica, sans-serif;"><b><i><br /></i></b></span></div>
</div>
</div>
<br />
<br />
<br /></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com6tag:blogger.com,1999:blog-4348809268720015403.post-29478716683896915192012-06-10T12:33:00.001-07:002014-11-19T08:47:28.228-08:00JDBC Storage Handler for Hive<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
<span style="font-family: Times, 'Times New Roman', serif;">I was able to complete the implementation of Hive JDBC Storage Handler with basic functionality. Therefore I thought to write a blog post describing the usage with some sample queries. Currently It supports writing into any database and reading from major databases (MySql, MsSql, Oracle, H2, PostgreSQL). This feature comes with <a href="http://wso2.com/products/business-activity-monitor/">WSO2 BAM 2.0.0</a> release. </span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
<h3>
<span style="font-size: small;">Setting up the BAM to use Hive jdbc-handler. </span></h3>
<div>
<span style="font-size: small;"><br /></span></div>
<div>
<div style="text-align: left;">
<span style="font-family: Times, Times New Roman, serif;">Please add your jdbc-driver to $BAM_HOME/repository/component/lib directory, before starting the server. </span><br />
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
</div>
<div>
<h3>
<span class="kwrd"><span style="font-family: Times, 'Times New Roman', serif; font-size: small;">Web UI for executing Hive queries.</span></span></h3>
<pre class="csharpcode" style="background-color: white; text-align: justify;"><span class="kwrd"><span style="color: black; font-family: Times, 'Times New Roman', serif; font-size: small;">BAM2 comes with a web ui for executing the Hive queries. Also there is a option to schedule the script</span></span></pre>
<pre class="csharpcode" style="background-color: white; text-align: justify;"><span style="font-family: Times, 'Times New Roman', serif;">
</span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5yUE_Ee7RIIpk_p0a3uVG6urOx2w0_Mecu1Kr05ZWDn4EEt0c9JBtfJ_rNoCIfcX-T9ydmpxOh5Hn1AEX4gD_hBPhY6YX8ciLGcZsCt0FT5HbRAicgHACEvtgfam6svjaWwpc3VXxHHU/s1600/Script.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="222" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5yUE_Ee7RIIpk_p0a3uVG6urOx2w0_Mecu1Kr05ZWDn4EEt0c9JBtfJ_rNoCIfcX-T9ydmpxOh5Hn1AEX4gD_hBPhY6YX8ciLGcZsCt0FT5HbRAicgHACEvtgfam6svjaWwpc3VXxHHU/s400/Script.png" width="400" /></a></div>
<pre class="csharpcode" style="background-color: white; text-align: justify;"><span class="kwrd"><span style="font-family: Times, 'Times New Roman', serif;"> </span></span></pre>
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small; text-align: -webkit-auto;"><span class="kwrd" style="color: blue;"><pre class="csharpcode" style="color: black; text-align: center;"><span style="font-family: Times, 'Times New Roman', serif;"><u>User interface for writing Hive Queries</u></span></pre>
</span></pre>
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small; text-align: -webkit-auto;"><span style="color: blue;">
</span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii4PDGMfQfeB_GZesOKnSGBtutGjKV4RJunshqeVVZ7JkVqm_NBEsTO8CDutrAB53THdvkmeSZKQ6PtAJSwnmARpq1q51KCX9SxHEiqiv_Ql-qznhCNJVhUWfJos-xapesTPaG8dKgz5k/s1600/shedule_Script.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="222" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii4PDGMfQfeB_GZesOKnSGBtutGjKV4RJunshqeVVZ7JkVqm_NBEsTO8CDutrAB53THdvkmeSZKQ6PtAJSwnmARpq1q51KCX9SxHEiqiv_Ql-qznhCNJVhUWfJos-xapesTPaG8dKgz5k/s400/shedule_Script.png" width="400" /></a></div>
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small; text-align: -webkit-auto;"><span class="kwrd" style="color: blue;">
</span></pre>
</div>
<div>
<div style="text-align: center;">
<span style="font-family: Times, 'Times New Roman', serif; font-size: x-small;"><u>User interface for scheduling hive script</u></span></div>
</div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<h3>
<span style="font-size: small;">Sample on writing analyzed data into JDBC </span></h3>
<div>
<span style="font-size: small;"><br /></span></div>
<div>
<div>
<span style="font-family: Times, 'Times New Roman', serif;">Here I am going to demonstrate the functionality of writing the analyzed data into JDBC storage. In this simple example, We'll fetch records from a file then analyze it using hive and finally store those analyzed data into MySQL database. </span></div>
<div>
<span style="font-family: Times, 'Times New Roman', serif;"><br /></span></div>
<div>
<span style="font-family: Times, 'Times New Roman', serif;">Records - These are the records that we are going to analyze.</span></div>
</div>
<div>
<br /></div>
<div>
<span style="font-size: x-small;"><br /></span></div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt">bread 12 12/01/2012</pre>
<pre>sugar 20 12/01/2012</pre>
<pre class="alt">milk 5 12/01/2012</pre>
<pre>tea 33 12/01/2012</pre>
<pre class="alt">soap 10 12/01/2012</pre>
<pre>tea 9 13/01/2012</pre>
<pre class="alt">bread 21 13/01/2012</pre>
<pre>sugar 9 13/01/2012</pre>
<pre class="alt">milk 14 13/01/2012</pre>
<pre>soap 8 13/01/2012</pre>
<pre class="alt">biscuit 10 14/01/2012</pre>
</div>
</div>
<br />
<br />
<h3 style="text-align: left;">
<span style="font-size: small;">
Hive Queries</span></h3>
<br /></div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="rem">//drop tables if already exist</span></pre>
<pre> </pre>
<pre class="alt">drop table productTable;</pre>
<pre> </pre>
<pre class="alt">drop table summarizedTable;</pre>
<pre> </pre>
<pre class="alt">CREATE TABLE productTable (product STRING, noOfItems INT, dateOfSold STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY <span class="str">'\t'</span>;</pre>
<pre> </pre>
<pre class="alt"><span class="rem">//Load the file with above records</span></pre>
<pre> </pre>
<pre class="alt">load data local inpath <span class="str">'/opt/sample/data/productInfo.txt'</span> into table productTable;</pre>
<pre> </pre>
<pre class="alt">CREATE EXTERNAL TABLE IF NOT EXISTS</pre>
<pre class="alt">summarizedTable( product STRING, itemsSold INT) </pre>
<pre class="alt">STORED BY <span class="str">'org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler'</span></pre>
<pre> TBLPROPERTIES (</pre>
<pre class="alt"> <span class="str">'mapred.jdbc.driver.class'</span> = <span class="str">'com.mysql.jdbc.Driver'</span>,</pre>
<pre> <span class="str">'mapred.jdbc.url'</span> = <span class="str">'jdbc:mysql://localhost/test'</span>,</pre>
<pre class="alt"> <span class="str">'mapred.jdbc.username'</span> = <span class="str">'username'</span>,</pre>
<pre> <span class="str">'mapred.jdbc.password'</span> = <span class="str">'password'</span>,</pre>
<pre class="alt"> <span class="str">'hive.jdbc.update.on.duplicate'</span>= <span class="str">'true'</span>,</pre>
<pre> <span class="str">'hive.jdbc.primary.key.fields'</span>=<span class="str">'product'</span>,</pre>
<pre class="alt"> <span class="str">'hive.jdbc.table.create.query'</span> = <span class="str" style="background-color: transparent;">'CREATE TABLE productSummary (product VARCHAR(50) NOT NULL PRIMARY KEY, itemsSold INT NOT NULL)'</span><span style="background-color: transparent;">);</span></pre>
<pre> </pre>
<pre class="alt">insert overwrite table summarizedTable SELECT product, sum(noOfItems) FROM productTable GROUP BY product;</pre>
</div>
<br />
<br />
View the result in mysql.<br />
<br />
<pre class="csharpcode" style="text-align: -webkit-auto;">mysql> <span class="kwrd">select</span> * <span class="kwrd">from</span> productSummary;
+<span class="rem">---------+-----------+</span>
| product | itemsSold |
+<span class="rem">---------+-----------+</span>
| biscuit | 10 |
| bread | 33 |
| milk | 19 |
| soap | 18 |
| sugar | 29 |
| tea | 42 |
+<span class="rem">---------+-----------+</span>
6 rows in set (0.00 sec)</pre>
<pre class="csharpcode" style="text-align: -webkit-auto;"></pre>
<h3 style="text-align: left;">
<br /><span style="background-color: transparent; text-align: left;"><span style="font-size: small;">Detail description on TBLPROPERTIES in storage handler.</span></span></h3>
<div>
<br /></div>
<style type="text/css">
.nobrtable br { display: none }
</style>
<br />
<div class="nobrtable">
<table border="2" bordercolor="#3366cc" cellpadding="3" cellspacing="3" style="background-color: white;"><tbody>
<tr style="background-color: black; color: white; padding-bottom: 4px; padding-top: 5px;"> <th>Property name </th>
<th>Required</th>
<th>Detail</th>
</tr>
<tr>
<td>mapred.jdbc.driver.class</td>
<td>Yes</td>
<td><div style="text-align: justify;">
The classname for the JDBC Driver to use. This should be available on Hive's classpath.</div>
</td></tr>
<tr><td>mapred.jdbc.url </td>
<td>Yes</td><td>The connection url for the database.</td>
</tr>
<tr>
<td>mapred.jdbc.username</td>
<td>No</td><td>The database username, if it's required.</td>
</tr>
<tr>
<td>mapred.jdbc.password </td>
<td>No</td>
<td>The database Password, if it's required.</td>
</tr>
<tr>
<td>hive.jdbc.table.create.query</td>
<td>No</td>
<td><div style="text-align: justify;">
<span style="font-family: Times, 'Times New Roman', serif;"><span style="background-color: white; text-align: left;">If table already exist in the database, then you don't need this. Otherwise you should </span><span style="background-color: white; text-align: left;">provide the sql query for creating the table in the database.</span></span></div>
<br /></td>
</tr>
<tr>
<td>mapred.jdbc.output.table.name </td>
<td>No</td>
<td><div style="text-align: justify;">
<span style="font-family: Times, 'Times New Roman', serif;"><span style="background-color: white; text-align: left;">The name of the table in the database. It does not have to be the same as the name of</span><span class="Apple-tab-span" style="background-color: white; text-align: left; white-space: pre;"> </span><span style="background-color: white; text-align: left;">the table in Hive. If you have specified the sql query for creating the table, handler </span><span style="background-color: white; text-align: left;">will pick the table name from query. Otherwise you need to specify this if your meta </span><span style="background-color: white; text-align: left;">table name is different from the table in database.</span></span></div>
</td></tr>
<tr><td>hive.jdbc.primary.key.fields</td>
<td>Yes</td><td>If you have any primary keys in the database table</td>
</tr>
<tr>
<td>hive.jdbc.update.on.duplicate</td>
<td>No</td>
<td><div style="text-align: justify;">
<span style="background-color: white; text-align: left;">Expected values are either "true" or "false". If "true" then the storage handler will </span><span style="background-color: white; text-align: left;">update the records with duplicate keys. Otherwise it will insert all data. </span></div>
<br /></td>
</tr>
<tr>
<td>hive.jdbc.output.upsert.query</td><td>No</td>
<td><div style="text-align: justify;">
<span style="background-color: white; text-align: left;">This can be use to optimize the update operation. The default implementation is to use </span><span style="background-color: white; text-align: left;">insert or update statement after the select statement. So there will be two database </span><span style="background-color: white; text-align: left;">round trips. But we can reduce it to one by using db specific upsert statement. Example </span><span style="background-color: white; text-align: left;">query for mysql database is 'INSERT INTO productSummary (product, itemsSold) values </span><span style="background-color: white; text-align: left;">(?,?) ON DUPLICATE KEY UPDATE itemsSold=?'</span></div>
<br /></td>
</tr>
<tr>
<td>hive.jdbc.upsert.query.values.order</td>
<td>No</td><td><div style="text-align: justify;">
<span style="background-color: white; text-align: left;">If you are using an upsert query then this is mandatory. sample values for above query </span><span style="background-color: white; text-align: left;">will be 'product,itemsSold,itemsSold' //values order for each question mark </span></div>
<br /></td>
</tr>
<tr>
<td>hive.jdbc.input.columns.mapping</td>
<td>No</td>
<td><div style="text-align: justify;">
<span style="background-color: white; text-align: left;">This is mandatory if your field names in meta table and database tables are different. P</span><span style="background-color: white; text-align: left;">rovide the field names in database table in the same order as the field names in meta </span><span class="Apple-tab-span" style="background-color: white; text-align: left; white-space: pre;"> </span><span style="background-color: white; text-align: left;">table with ',' separated values. example: productNames,noOfItemsSold. These will map to </span><span style="background-color: white; text-align: left;">your meta table with product,itemsSold field names.</span></div>
<br /></td>
</tr>
<tr>
<td>mapred.jdbc.input.table.name</td>
<td>No</td>
<td><div style="text-align: justify;">
<span style="background-color: white; text-align: left;">Used when reading from a database table. This is needed if the meta table name and </span><span style="background-color: white; text-align: left;">database table name are different.</span></div>
<br /></td>
</tr>
</tbody></table>
</div>
</div>
<br />
<br />
<h3 style="text-align: left;">
<span style="font-family: Times, 'Times New Roman', serif; font-size: small;">Sample on reading from JDBC.</span></h3>
<div>
<br /></div>
<div>
Now I am going to read the previously saved records from mysql using hive jdbc-handler.</div>
<div>
<br /></div>
<h3 style="text-align: left;">
<span style="font-family: Times, 'Times New Roman', serif; font-size: small;">Hive queries</span></h3>
<div>
<br /></div>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="rem">//drop table if already exists</span></pre>
<pre>drop table savedRecords;</pre>
<pre class="alt"> </pre>
<pre>CREATE EXTERNAL TABLE IF NOT EXISTS savedRecords( product STRING, itemsSold INT) </pre>
<pre class="alt">STORED BY <span class="str">'org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler'</span> </pre>
<pre> TBLPROPERTIES ( </pre>
<pre class="alt"> <span class="str">'mapred.jdbc.driver.class'</span> = <span class="str">'com.mysql.jdbc.Driver'</span>,</pre>
<pre> <span class="str">'mapred.jdbc.url'</span> = <span class="str">'jdbc:mysql://localhost/test'</span>, </pre>
<pre class="alt"> <span class="str">'mapred.jdbc.username'</span> = <span class="str">'username'</span>, </pre>
<pre> <span class="str">'mapred.jdbc.password'</span> = <span class="str">'password'</span>,</pre>
<pre class="alt"> '<span class="str">mapred.jdbc.input.table.name'</span> = <span class="str">'productSummary'</span>);</pre>
<pre><span style="background-color: initial; color: #993333; font-size: 12px; font-weight: bold; line-height: 16px; text-align: -webkit-auto;">SELECT </span><span style="background-color: transparent;">product,itemsSold </span><span style="background-color: initial; color: #993333; font-size: 12px; font-weight: bold; line-height: 16px; text-align: -webkit-auto;">FROM</span><span style="background-color: transparent;"> savedRecords </span><span style="background-color: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #993333; font-size: 12px; font-weight: bold; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">ORDER</span><span style="background-color: initial; color: #713dab; font-size: 12px; line-height: 16px; text-align: -webkit-auto;"> </span><span style="background-color: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #993333; font-size: 12px; font-weight: bold; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">BY </span><span style="background-color: transparent;">itemsSold</span><span style="background-color: transparent;">;</span></pre>
</div>
<br />
This will give all the records in the productSummary table.<br />
<br /></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com5tag:blogger.com,1999:blog-4348809268720015403.post-70919569422043173192012-04-29T03:57:00.000-07:002014-11-19T08:47:37.218-08:00How to remote debug Apache Cassandra standalone server<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
In order to debug the cassandra server from your favorite IDE. You need to add the following into cassandra-env.sh<b> </b>located in apache-cassandra-1.1.0/conf directory.<br />
<br />
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small; text-align: -webkit-auto;">JVM_OPTS=<span class="str" style="color: #a31515;">"$JVM_OPTS -Xdebug"</span>
JVM_OPTS=<span class="str" style="color: #a31515;">"$JVM_OPTS -Xnoagent"</span>
JVM_OPTS=<span class="str" style="color: #a31515;">"$JVM_OPTS -Djava.compiler=NONE"</span>
JVM_OPTS=<span class="str" style="color: #a31515;">"$JVM_OPTS -Xrunjdwp:transport=dt_socket,server=y,address=5005,suspend=n"</span></pre>
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small; text-align: center;"><span style="font-family: 'Times New Roman'; font-size: small; text-align: left; white-space: normal;">cassandra-env.sh</span></pre>
<pre class="csharpcode" style="background-color: white; font-family: Consolas, 'Courier New', Courier, monospace; font-size: small; text-align: -webkit-auto;"><span style="font-family: 'Times New Roman'; font-size: small; text-align: left; white-space: normal;">
</span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhicX_0MRJQJw83a-DOpl2gOviQwbfS1ZYYuPFRHRTN8c5DwmT4RrAbzhKO0b1ppf7Ze6E4LjYaHZ6Orx2cmXUwunFia976c8pDIzAFZUPEeJMJ5U-lPSu5ROvzN3ylidSm2upcfzZO0aQ/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="222" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhicX_0MRJQJw83a-DOpl2gOviQwbfS1ZYYuPFRHRTN8c5DwmT4RrAbzhKO0b1ppf7Ze6E4LjYaHZ6Orx2cmXUwunFia976c8pDIzAFZUPEeJMJ5U-lPSu5ROvzN3ylidSm2upcfzZO0aQ/s400/Screenshot.png" width="400" /></a></div>
<pre class="csharpcode" style="background-color: white; text-align: left;"><span style="font-family: 'Times New Roman';"><span style="white-space: normal;">
</span></span></pre>
<br />
<br />
After adding this, once you start the server you can see the following line printed in cassandra console<br />
<br />
<b>"Listening for transport dt_socket at address: 5005" </b><br />
<br />
This the port that you specified in JAVA_OPTS. You can change it to some other value as you want.<br />
<br />
Now configure your IDE to run on debug mode.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSwmUtBfSU6TpfMZCV-2gPXmVduC9R2dmwHwt5WCRtfsQHDzKIDtAGn-dXP1943_D_GNCg5LYdf0-syxH8KbK-dU6bF6kgTDsVBrHNMGiyxpJeZI6-y7i7vpz0KYj3zXjSu71X1tGQvRg/s1600/Screenshot-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSwmUtBfSU6TpfMZCV-2gPXmVduC9R2dmwHwt5WCRtfsQHDzKIDtAGn-dXP1943_D_GNCg5LYdf0-syxH8KbK-dU6bF6kgTDsVBrHNMGiyxpJeZI6-y7i7vpz0KYj3zXjSu71X1tGQvRg/s400/Screenshot-1.png" width="400" /></a></div>
<br />
<br />
Now you can debug the apache cassandra server from your favorite IDE :)<br />
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com23tag:blogger.com,1999:blog-4348809268720015403.post-40547592757257443172012-03-18T09:12:00.003-07:002012-03-18T09:14:49.253-07:00WSO2 BAM 2.0.0-Alpha 2 released..!!!!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
After working hard on releasing BAM-2.0.0 Alpha2, We were able to release it on 13th March 2012.</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<b>This is the release note :</b></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<b><br /></b></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
WSO2 team is pleased to announce the release of version 2.0.0 - ALPHA 2 of <a href="http://wso2.org/projects/bam" style="color: #114170;" target="_blank">WSO2 Business Activity Monitor.</a></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
WSO2 Business Activity Monitor (WSO2 BAM) is a comprehensive framework designed to solve the problems in the wide area of business activity monitoring. WSO2 BAM comprises of many modules to give the best of performance, scalability and customizability. These allow to achieve requirements of business users, dev ops, CxOs without spending countless months on customizing the solution without sacrificing performance or the ability to scale.</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
WSO2 BAM is powered by <a href="http://wso2.org/projects/carbon" style="color: #114170;" target="_blank">WSO2 Carbon</a>, the SOA middleware component platform.</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<span style="font-size: medium;"><b>Downloads</b></span></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
The binary distribution can be downloaded at <a href="http://dist.wso2.org/products/bam/2.0.0-alpha2/wso2bam-2.0.0-ALPHA2.zip" style="color: #114170;" target="_blank">http://dist.wso2.org/products/<wbr></wbr>bam/2.0.0-alpha2/wso2bam-2.0.<wbr></wbr>0-ALPHA2.zip</a>. </div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
The documentation pack is available at <a href="http://dist.wso2.org/products/bam/2.0.0-alpha2/wso2bam-2.0.0-ALPHA2-docs.zip" style="color: #114170;" target="_blank">http://dist.wso2.org/products/<wbr></wbr>bam/2.0.0-alpha2/wso2bam-2.0.<wbr></wbr>0-ALPHA2-docs.zip</a>.</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<div>
<span style="font-size: medium;"><b><br /></b></span></div>
<div>
<span style="font-size: medium;"><b>Samples</b></span></div>
<div>
<ol>
<li style="margin-left: 15px;">Service Data Agent - Sample to install Service data agent, publish statistics and intercepted message activity from Service Hosting WSO2 Servers such as WSO2 AS, DSS, BPS, CEP, BRS and any other WSO2 Carbon server with the service hosting feature</li>
<li style="margin-left: 15px;">Mediation Data Agent - Sample to install Mediation data agent, publish mediation statistics and intercepted message activity using Message Activity Mediators from the WSO2 ESB</li>
<li style="margin-left: 15px;">Data center wide cluster monitoring - Sample to simulate two data centers each having two clusters sending statistics events, perform summarizations and visualize them in a dashboard</li>
<li style="margin-left: 15px;">End - End Message Tracing - Sample to simulate messages fired from a set of servers to WSO2 BAM and set up message tracing analytics and visualizations of respective messages</li>
<li style="margin-left: 15px;">KPI Definition - Sample to simulate receiving events from a server (ex: WSO2 AS), perform summarizations and visualize product and consumer data in a retail store</li>
<li style="margin-left: 15px;">Fault Detection & Alerting - Sample to simulate receiving events from a server (ex: WSO2 ESB), detect faults and fire email alerts</li>
</ol>
</div>
</div>
<h2 style="background-color: white; font-family: arial, sans-serif; text-align: -webkit-auto;">
Features</h2>
<ul style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<li style="margin-left: 15px;">Data Agents</li>
<ol>
<li style="margin-left: 15px;">Pre built data agents - Service Data Agent for the WSO2 AS, DSS, BPS, CEP, BRS and any other WSO2 Carbon server with the service hosting feature and Mediation Data Agent for the WSO2 ESB</li>
<li style="margin-left: 15px;">A re-usable Agent API to publish events to the BAM server from any application (samples included)</li>
<li style="margin-left: 15px;">Apache Thrift based Agents to publish data at extremely high throughput rates</li>
<li style="margin-left: 15px;">Option to use Binary or HTTP protocols</li>
</ol>
<li style="margin-left: 15px;">Event Storage</li>
<ol>
<li style="margin-left: 15px;">Apache Cassandra based scalable data architecture for high throughput of writes and reads</li>
<li style="margin-left: 15px;">Carbon based security mechanism on top of Cassandra</li>
</ol>
<li style="margin-left: 15px;">Analytics</li>
<ol>
<li style="margin-left: 15px;">An Analyzer Framework with the capability of writing and plugging in any custom analysis tasks</li>
<li style="margin-left: 15px;">Built in Analyzers for common operations such as get, put aggregate, alert, fault detection, etc.</li>
<li style="margin-left: 15px;">Scheduling capability of analysis tasks</li>
</ol>
<li style="margin-left: 15px;">Visualization</li>
<ol>
<li style="margin-left: 15px;">Drag and drop gadget IDE to visualize analyzed data with zero code</li>
<li style="margin-left: 15px;">Capability to plug in additional UI elements and Data sources to Gadget IDE</li>
<li style="margin-left: 15px;">Google gadgets based dashboard</li>
</ol>
</ul>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;">
<h3>
<span style="font-size: medium;"><br /></span></h3>
<h3>
<span style="font-size: medium;">Reporting Issues</span></h3>
WSO2 encourages you to report issues, enhancements and feature requests for WSO2 BAM. Use the <a href="http://wso2.org/jira/browse/bam" style="color: #114170;" target="_blank">issue tracker</a> for reporting any of these.</div>
</div>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com4tag:blogger.com,1999:blog-4348809268720015403.post-22916078265537623592012-02-26T00:16:00.000-08:002012-02-26T00:19:13.815-08:00Setting up a Cassandra cluster using wso2 carbon<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
If you want to use WSO2 security model with Cassandra cluster here I'll show you, how you can setup a cassandra cluster using wso2 carbon.<br />
<br />
First you need to download <a href="http://wso2.org/products/download/carbon/3.2.2/wso2carbon-3.2.2.zip">wso2 carbon</a> (I am using version 3.2.2)<br />
<br />
Then install cassandra feature by using the p2 repository from http://dist.wso2.org/p2/carbon/releases/3.2.2/ to wso2 carbon server.<br />
<br />
This will install Cassandra 0.7 version to your carbon server.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-JTi1SFXVK0eKjZf0rG-HE9HMtoOrig962GnlPGLCB5klSFFDjV1rJcYMMVFiYqPEOFTeNX693f9gdY-Tfct_UguBqQIzdIWSlD2mJAPy7uGjv3dakzOD6JUnqUwODbwXN5Y2xfb3_y4/s1600/Installfeature.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-JTi1SFXVK0eKjZf0rG-HE9HMtoOrig962GnlPGLCB5klSFFDjV1rJcYMMVFiYqPEOFTeNX693f9gdY-Tfct_UguBqQIzdIWSlD2mJAPy7uGjv3dakzOD6JUnqUwODbwXN5Y2xfb3_y4/s400/Installfeature.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<b><i><span style="font-size: x-small;"><br /></span></i></b><br />
<b><i><span style="font-size: x-small;"><br /></span></i></b><br />
<span style="font-size: x-small;"><b><i>Adding p2 repository (http://dist.wso2.org/p2/carbon/releases/3.2.2/)</i></b></span><br />
<span style="font-size: x-small;"><b><i><br /></i></b></span><br />
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ11Tqhfsr4d_djwoQb7BNE7KoDnVqDZmMnBGpocFU9Ydkpfpt2hiR64Mkh2YLBtom6x5Kxz3GxfiVt7H2HWQxOMrdNM89NQU5WsPqdw4ne-sSmVxlUJIanaKfe0bOEx0aebPfRhxnGPI/s1600/install.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ11Tqhfsr4d_djwoQb7BNE7KoDnVqDZmMnBGpocFU9Ydkpfpt2hiR64Mkh2YLBtom6x5Kxz3GxfiVt7H2HWQxOMrdNM89NQU5WsPqdw4ne-sSmVxlUJIanaKfe0bOEx0aebPfRhxnGPI/s400/install.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<i style="font-size: small;"><b>Installing Cassandra 3.2.2 feature</b></i><br />
<span style="font-size: x-small;"><b><i><br /></i></b></span><br />
After finishing the installation restart the carbon server. Now carbon server will work as your Cassandra server.</div>
<br />
<br />
setup few more cassandra nodes using wso2 carbon as above according to your requirement.<br />
You can follow the instruction given by this <a href="http://www.datastax.com/docs/0.7/getting_started/configuring#getting-started">site</a> for setting up the cassandra cluster.<br />
The cassandra.yaml configuration file is located in $wso2carbon_home/repository/conf/advanced/ directory.<br />
<br />
<br />
Add following configuration file (cassandra-auth.xml) $wso2carbon_home/repository/conf/advanced/ in order to view keyspaces using Cassandra Keyspaces ui (change the username and password accordingly).<br />
<br />
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="kwrd"><</span><span class="html">Cassandra</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">EPR</span><span class="kwrd">></span>https://localhost:9443/services/CassandraSharedKeyPublisher<span class="kwrd"></</span><span class="html">EPR</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">User</span><span class="kwrd">></span>USERNAME<span class="kwrd"></</span><span class="html">User</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Password</span><span class="kwrd">></span>PASSWD<span class="kwrd"></</span><span class="html">Password</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">Cassandra</span><span class="kwrd">></span></pre>
</div>
<br />
<b><i><span style="font-size: x-small;">cassandra-auth.xml</span></i></b><br />
<b><br /></b><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigLAKg72dkBtUQhxQegrFmtvdRK2nEJdxgGlgKmQF1vAav5yqgTnav5XqW6dLDVijm2PExlW0IgC0PMD84UAdL418uJ8GZ3oAZ-VUsq47KOg6zArotOV76uh9kyC4lrS9AelXc7WNED1c/s1600/CassandraKS.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="133" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigLAKg72dkBtUQhxQegrFmtvdRK2nEJdxgGlgKmQF1vAav5yqgTnav5XqW6dLDVijm2PExlW0IgC0PMD84UAdL418uJ8GZ3oAZ-VUsq47KOg6zArotOV76uh9kyC4lrS9AelXc7WNED1c/s400/CassandraKS.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b><i><span style="font-size: x-small;">Cassandra Keyspaces ui</span></i></b><br />
<b><i><br /></i></b><br />
Once you finish the configuration. You can check the status of the cluster by using Cassandra cluster ui or else You can use nodetool comes with Apache Cassandra to monitor the cluster.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2TlzlsGeeqcpDikIX73bGFnbGAkLzpn2Vhq2Sn3QYJgw3GyD8a-bFNZ4kWiz6P9bynotaGPeQFShEmDEboFU9hE0GK41HUvq-ouoy3hCKMTP02D4pUjzLcQUOwXEuilZLDFxvq7wg_Q/s1600/cluster.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="135" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2TlzlsGeeqcpDikIX73bGFnbGAkLzpn2Vhq2Sn3QYJgw3GyD8a-bFNZ4kWiz6P9bynotaGPeQFShEmDEboFU9hE0GK41HUvq-ouoy3hCKMTP02D4pUjzLcQUOwXEuilZLDFxvq7wg_Q/s400/cluster.png" width="400" /></a></div>
<br />
<br />
<b><br /></b><br />
<b><br /></b><br />
<b><br /></b><br />
<b><i><span style="font-size: x-small;">Cassandra cluster monitor ui </span></i></b><br />
<b><i><br /></i></b><br />
<div style="font-style: italic; font-weight: bold;">
nodetool </div>
<div style="font-style: italic; font-weight: bold;">
<br /></div>
$./nodetool -h 192.168.0.100 -p 9999 ring -u admin -pw admin<br />
<br />
<b>Address Status State Load Owns Token </b> <br />
113427455640312821154458202477256070485 <br />
192.168.0.100 Up Normal 20.36 MB 33.33% 0 <br />
192.168.0.101 Up Normal 251.64 MB 33.33% 56713727820156410577229101238628035242 <br />
192.168.0.102 Up Normal 20.95 MB 33.33% 113427455640312821154458202477256070485<br />
<div style="font-style: italic; font-weight: bold;">
<br /></div>
<b>note:</b> remote jmx agent port number in carbon server is 9999 + offset (default offset in carbon.xml is 0)<br />
<br />
<br /></div>
</div>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com1tag:blogger.com,1999:blog-4348809268720015403.post-35527038117797425152012-02-16T11:23:00.000-08:002014-11-19T08:47:54.061-08:00Fixing ADB databinding issue when web service method returning OMElement<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
When I try to call a web service which return an OMElement, I faced above issue (My Axis2 version is 1.6.1). Following I have shown the steps that I did for fixing the issue.<br />
<br />
This is the part of the stack trace.<br />
<br />
<br />
<div class="csharpcode">
<pre class="alt"><span style="font-family: inherit; font-size: x-small;">org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Any type element type has not been given</span></pre>
<pre><span style="font-family: inherit; font-size: x-small;"> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)</span></pre>
<pre class="alt"><span style="font-family: inherit; font-size: x-small;"> at org.wso2.carbon.bam.presentation.stub.QueryServiceStub.fromOM(QueryServiceStub.java:8908)</span></pre>
<pre><span style="font-family: inherit; font-size: x-small;"> at org.wso2.carbon.bam.presentation.stub.QueryServiceStub.queryColumnFamily(QueryServiceStub.java:800)</span></pre>
<pre class="alt"><span style="font-family: inherit; font-size: x-small;"> at org.wso2.carbon.bam.clustermonitor.ui.ClusterAdminClient.getClusterStatistics(ClusterAdminClient.java:148)</span></pre>
</div>
<br />
<br />
If you check the schema of the response element in your generated wsdl(by axis2) it should similar to this.<br />
<br />
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="kwrd"><</span><span class="html">xs:element</span> <span class="attr">name</span><span class="kwrd">="queryColumnFamilyResponse"</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">xs:complexType</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">xs:sequence</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">xs:element</span> <span class="attr">minOccurs</span><span class="kwrd">="0"</span> <span class="attr">name</span><span class="kwrd">="return"</span> <span class="attr">nillable</span><span class="kwrd">="true"</span> <span class="attr">type</span><span class="kwrd">="xs:anyType"</span> <span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">xs:sequence</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"></</span><span class="html">xs:complexType</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">xs:element</span><span class="kwrd">></span></pre>
</div>
<br />
In order to fix the ADB databinding issue you need to change the above schema as follows and regenerate the stub code.<br />
<br />
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="kwrd"><</span><span class="html">xs:element</span> <span class="attr">name</span><span class="kwrd">="queryColumnFamilyResponse"</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">xs:complexType</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">xs:sequence</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">xs:any</span> <span class="attr">processContents</span><span class="kwrd">="skip"</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">xs:sequence</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"></</span><span class="html">xs:complexType</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">xs:element</span><span class="kwrd">></span></pre>
</div>
<br />
Then ADB will generate code that represents the content of OriginalMessage as an OMElement and this will fix your problem.<br />
<br /></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com1tag:blogger.com,1999:blog-4348809268720015403.post-57996712706132310252011-09-10T08:08:00.000-07:002014-11-19T08:48:07.566-08:00WSO2Con 2011<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/PeQOh7Bgdr8?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<br />
<div style="text-align: justify;">
"<a href="http://wso2.com/events/wso2con-2011-colombo/">WSO2Con</a> is one fantastic week of tutorials, tech talk and networking events. Whether you are a developer, architect, IT manager or technology enthusiast, learn how global enterprises, SaaS providers and innovative startups are using WSO2 platforms to build distributed web apps, java services, bpel flows, Software-as-a-Service (SaaS) and more"</div>
<br />
<div style="text-align: justify;">
This will be held on September 12-16 at Sri Lanka, You must join this event if you are interested in SOA and Cloud Computing. Not only that there are many other topics (NoSQL,Carbon platform,OSGI,Security,..etc) will be covered in conference and tutorial sessions. </div>
<br />
<div style="text-align: justify;">
Also You can find more detail about WSO2 Business Activity Monitoring product, which is developing with new architecture that can handle large volume of data, also it provides a powerful framework for customizing and monitoring key performance indicators.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<a href="http://wso2.com/events/wso2con-2011-colombo/speakers/">Speaker panel</a> consist of experienced speakers from more than 10 countries, including speakers from Google,IBM,..etc.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Complete Aggenda for Wso2 Con 2011 can be found from <a href="http://wso2.com/events/wso2con-2011-colombo/agenda/">here</a>.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
You can get rough idea of the topics that is going to cover from following image.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4BUaTvfVFoDnjGn05VN_Ty1eiNZ1fZxZnkSJ3YVsPpIa-qabTCilRcrQp9gyUo1UY3Jx5WE39vWgjkUL_3BOzA3jUFs-FLWfCRmz9_BSx58cc6VYC7IKpRtpqlFtRWXgh8UGuHOA0Zoo/s1600/wso2con-2011-conference-at-a-glance.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="356" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4BUaTvfVFoDnjGn05VN_Ty1eiNZ1fZxZnkSJ3YVsPpIa-qabTCilRcrQp9gyUo1UY3Jx5WE39vWgjkUL_3BOzA3jUFs-FLWfCRmz9_BSx58cc6VYC7IKpRtpqlFtRWXgh8UGuHOA0Zoo/s400/wso2con-2011-conference-at-a-glance.png" width="400" /></a></div>
<br />
<br />
<br />
<div>
<br /></div>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-78645456043201152642011-08-22T10:24:00.000-07:002014-11-19T08:48:21.399-08:00How to close, open ports in linux<div dir="ltr" style="text-align: left;" trbidi="on"><br />
If you want to close the port 8080, this is an one way of doing this, if you are on ubuntu.<br />
<br />
type following command:<br />
> netstat -lpn<br />
<br />
This will list all listening ports<br />
<br />
<br />
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br />
tcp 0 0 0.0.0.0:49027 0.0.0.0:* LISTEN 13098/java <br />
tcp 0 0 127.0.0.1:9160 0.0.0.0:* LISTEN 13098/java <br />
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - <br />
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 13098/java <br />
tcp 0 0 0.0.0.0:33395 0.0.0.0:* LISTEN 13098/java <br />
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN - <br />
tcp 0 0 127.0.0.1:7000 0.0.0.0:* LISTEN 13098/java <br />
<br />
<br />
Use grep for filtering out the 8080 port.<br />
<br />
<b>You can use following command</b>:<br />
> <b>netstat -lpn | grep 8080</b><br />
<br />
You'll get output something like this<br />
<br />
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 13098/java<br />
<br />
Here my process id is 13098 and it is the process that is using port 8080<br />
<br />
<b>Kill the process using following command</b>:<br />
> <b>sudo</b> <b>kill 13098</b><br />
<br />
Now port 8080 is free.</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com7tag:blogger.com,1999:blog-4348809268720015403.post-35326863669146022832011-07-03T08:37:00.000-07:002014-11-19T08:48:32.490-08:00How to re-index all resources in GREG 4.0.0<div dir="ltr" style="text-align: left;" trbidi="on"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">If you need to re-index all resources in greg 4.0.0, here I have explain how you can do that. </span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">This can be easily done by editing registry.xml located at CARBON_HOME/repository/conf folder. In registry.xml go to the indexingConfiguration section and then change the resource name of lastAccessTimeLocation to some other value.</span></div><div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div dir="ltr" style="margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="background-color: transparent; color: black; font-family: Georgia, 'Times New Roman', serif; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><u>Default value:</u><br />
<br />
<lastAccessTimeLocation>/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime</lastAccessTimeLocation></span></div><div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"> <span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
<u>New Value (after changing the resource name):</u><br />
<br />
<lastAccessTimeLocation>/_system/local/repository/components/org.wso2.carbon.registry/indexing/newlastaccesstime</lastAccessTimeLocation></span><div dir="ltr" style="margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><br />
<br />
<img height="155" src="https://lh5.googleusercontent.com/msaaZLwk6jOhZoRz_J-5QyDzzdviQKObywQXnrDxLxXPlHoNvt2ggef94mJuMRTBZw25upW1EEfVVXLsrcs6XCZ3XVu2gzqcEziIcnwTEy2zQLOovEA" width="400" /></div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
Now restart the server, then greg will re-index all resources from scratch. </span></div><div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div style="background-color: transparent; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-89825810561919928342011-07-02T11:39:00.000-07:002014-11-19T08:48:46.134-08:00Reinstall grub2 after installing windows 7 (XP/Vista)<div dir="ltr" style="text-align: left;" trbidi="on"><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">You may need to reinstall grub when windows is installed after ubuntu (or if you reinstalled windows in dual boot (Windows and ubuntu) system). I used following steps for reinstalling grub in order to login to my Ubuntu 10.04 after reinstalling Windows 7 on my machine.</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">1. boot the ubuntu LiveCD</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">2. Open a terminal and type</span></div><div><pre style="background-color: #f0eee6; border-bottom-color: rgb(193, 180, 150); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(193, 180, 150); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(193, 180, 150); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(193, 180, 150); border-top-style: dashed; border-top-width: 1px; padding-bottom: 4pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; word-wrap: break-word;"><span class="Apple-style-span" style="font-size: x-small;"><span class="Apple-style-span" style="font-family: courier, monospace;"><span class="Apple-style-span" style="white-space: pre-wrap;">sudo fdisk -l</span></span></span></pre><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbVGDU1KsHW2IL5RAg4lSOdNLVvzgXV-E1wvVL2mwvcqFQPK63R5xsae3PyCANOuaerG4lGZCkNbxerX1FWR4nmLs0SyJm-3AzHpKua632lP7TmhPRrHOXoFMinQjqZPUnAxqe6j_hSMQ/s1600/diskUtility.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="245" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbVGDU1KsHW2IL5RAg4lSOdNLVvzgXV-E1wvVL2mwvcqFQPK63R5xsae3PyCANOuaerG4lGZCkNbxerX1FWR4nmLs0SyJm-3AzHpKua632lP7TmhPRrHOXoFMinQjqZPUnAxqe6j_hSMQ/s400/diskUtility.png" width="400" /></a></div><div class="separator" style="clear: both;"><br />
<span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">This list the partition tables, and in my case root (/) partition is on /dev/sda9.</span></div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
3. Mount that partition using following command.</span></div><div><br />
</div><div><pre style="background-color: #f0eee6; border-bottom-color: rgb(193, 180, 150); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(193, 180, 150); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(193, 180, 150); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(193, 180, 150); border-top-style: dashed; border-top-width: 1px; font-family: courier, monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 4pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; white-space: pre-wrap; word-wrap: break-word;"><span class="Apple-style-span" style="font-family: 'Helvetica Neue', 'Lucida Grande', Helvetica, Arial, Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: 14px;">sudo mount /dev/sda9 /mnt</span></span></pre><br />
4<span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">. Run the grub-install command as below. This will reinstall the grub 2</span><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-family: 'Helvetica Neue', 'Lucida Grande', Helvetica, Arial, Verdana, sans-serif; font-size: 14px;"></span></span><br />
<pre style="background-color: #f0eee6; border-bottom-color: rgb(193, 180, 150); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(193, 180, 150); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(193, 180, 150); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(193, 180, 150); border-top-style: dashed; border-top-width: 1px; font-family: courier, monospace; padding-bottom: 4pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; white-space: pre-wrap; word-wrap: break-word;"><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">sudo grub-install --root-directory=/mnt /dev/sda</span></pre><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Here "sda" is the hard disk on which your Linux distribution is installed!</span><br />
<br />
<span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> 5. Reboot<br />
</span></div><div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">6. Finally Refresh the grub 2 menu using following command</span></div><div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div><pre style="background-color: #f0eee6; border-bottom-color: rgb(193, 180, 150); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(193, 180, 150); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(193, 180, 150); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(193, 180, 150); border-top-style: dashed; border-top-width: 1px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 4pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; word-wrap: break-word;"><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-family: monospace;"><span class="Apple-style-span" style="white-space: normal;">sudo update-grub</span></span></span></pre><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
Now everything should be fine :)</span></div><div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></div><div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span><span class="Apple-style-span" style="font-family: monospace;"><br />
</span></div></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com17tag:blogger.com,1999:blog-4348809268720015403.post-12120107685860972882011-04-16T23:42:00.000-07:002014-11-19T08:49:18.351-08:00WSDL to UDDI Mapping<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></span><br />
<div style="background-color: transparent;">
<h2 id="internal-source-marker_0.354934461414814" style="margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 18pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></h2>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: large;"><u style="font-family: Times,"Times New Roman",serif;"><b>Introduction</b></u></span></span></div>
<div style="background-color: transparent;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span></span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">Universal Description, Discovery and Integration (UDDI) is a platform independent, Extensible Markup Language (XML) based registry and it provides a mechanism for describing and discovering Web service providers, Web services and technical interfaces which may be used to access those services. There are several UDDI implementations are available (Apache jUDDI </span></span></span></span><span style="font-size: large;"><a href="http://juddi.apache.org/">[1]</a></span><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">, OpenUDDI Server</span></span></span></span><span style="font-size: large;"> </span><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">etc.). The Web Services Description Language (WSDL) is an XML based language for describing the interface, protocol bindings, and the deployment details of network services. The objective of this blog is to show the relationship between WSDL and UDDI and to describe a mechanism for mapping WSDL service descriptions to the UDDI data structures.The information in this blog adheres to the procedures outlined in OASIS UDDI Technical Note </span><a href="http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm" style="font-family: Georgia,"Times New Roman",serif;">[2]</a><span style="font-family: Georgia, 'Times New Roman', serif;"> and is consistent with the UDDI Version 3.0.2 Specification </span><a href="http://uddi.org/pubs/uddi_v3.htm" style="font-family: Georgia,"Times New Roman",serif;">[3]</a><span style="font-family: Georgia, 'Times New Roman', serif;">.</span></span></span></span></span></div>
<h2 style="font-family: Georgia,"Times New Roman",serif; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></span></span></span></span></h2>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><b><u><span style="font-size: large;"><span style="font-family: Times, 'Times New Roman', serif;">How to invoke a service using UDDI registry</span></span></u></b></span></div>
<div style="background-color: transparent;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span></span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">UDDI is designed to be interrogated by SOAP messages and to provide access to WSDL documents describing service binding information required to interact with the web services listed in the registry.</span></span></span></span></span></div>
<div style="margin-bottom: 0pt; margin-top: 0pt; text-align: justify;">
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img height="300" src="https://lh4.googleusercontent.com/w37YFbB0ECcV8sTnUO6w1gvx9Xenp91gD4bBiX1UeT2i6PHaUKsdE8SZ2LRXm4OexUOAO-H6n3FRyuQn74TUclctR-SypQ2uEdVTRZKagXqppn3KgQ" style="margin-left: auto; margin-right: auto;" width="400" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Add caption</td></tr>
</tbody></table>
<div style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span></span></span></span></span></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><br style="font-family: Times,"Times New Roman",serif;" /></span></span></span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><br style="font-family: Times,"Times New Roman",serif;" /><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">The steps involved in providing and consuming a service are:</span><span style="font-size: large;"><br style="font-family: Georgia,"Times New Roman",serif;" /></span></span></span><br />
<ol style="font-family: Georgia,"Times New Roman",serif;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: large;" xmlns="http://www.w3.org/1999/xhtml">
<li>A service provider (business) describes its service using WSDL. This definition is published to a UDDI registry. </li>
<li>A service consumer lookup the service in the UDDI registry and receives service binding information that can be used to determine how to communicate with that service. </li>
<li>The client then uses the binding information to invoke the service. </li>
</span></span></ol>
</div>
<ol></ol>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: large;"><u><b><span style="font-family: Times, 'Times New Roman', serif;">How to Map WSDL Document in UDDI.</span></b></u></span></span></div>
<div style="background-color: transparent;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span></span></span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"> <span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">This mapping describe a methodology to map WSDL 1.1 documents to UDDI version 3. Before going into details of mapping, it is important to understand the UDDI data structures. Here I have briefly described the data structures in UDDI.</span></span></span></span></span></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
<u><b><span style="font-family: Times, 'Times New Roman', serif; font-size: large;">UDDI data structures</span></b></u><br />
<br />
</span></span></span><br />
<ul style="font-family: Georgia,"Times New Roman",serif; text-align: justify;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml">
<li><span style="font-size: large;">businessEntity - A businessEntity structure used to represent the business or service provider within UDDI. </span></li>
<li><span style="font-size: large;">businessService - A businessService structure used to represent a web service. A businessEntity can have several businessServices. </span></li>
<li><span style="font-size: large;">bindingTemplate - A binding template contains the technical information associated to a particular service. A businessService can have several bindingTemplates </span></li>
<li><span style="font-size: large;">Technical Model (tModel) - A tModel is a generic container of information where designers can write any technical information associated for using the Web service.</span></li>
</span></span></span></ul>
<ul><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"> </span></span></span></span></span></span></span></span></span></span></ul>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><br />
<span style="font-size: large;"><u><b><span style="font-family: Times, 'Times New Roman', serif;">WSDL portType to tModel Mapping</span></b></u></span><br />
<br />
</span></span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">The information represent about a WSDL portType by the UDDI tModel is its entity type, local name, namespace, and location of the WSDL document that defines the portType. Each WSDL portType maps to a UDDI tModel having the same name as local name of the portType in the WSDL. The overviewURL provides the location of the WSDL document. In addition to that tModel contains a category bag with keyedReferences for type categorization as “portType” and namespace of the portType (If the wsdl:portType has a targetNamespace).</span></span></span></span></div>
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;"></span></span></span></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 12pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><u><b><br style="font-family: Times,"Times New Roman",serif;" /><span style="font-family: Times, 'Times New Roman', serif;">Following is the structure of UDDI portType tModel</span></b></u></span></div>
<div style="background-color: transparent;">
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="kwrd"><</span><span class="html">tModel</span> <span class="attr">tModelKey</span><span class="kwrd">="uuid:e8cf1163-8234-4b35-865f-94a7322e40c3"</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"><</span><span class="html">name</span><span class="kwrd">></span></pre>
<pre class="alt"> <b>[WSDL portType local name]</b></pre>
<pre><span class="kwrd"></</span><span class="html">name</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"><</span><span class="html">overviewDoc</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">overviewURL</span> <span class="attr">useType</span>=”<span class="attr">wsdlInterface</span>”<span class="kwrd">></span></pre>
<pre class="alt"> <b>[WSDL location URL]</b></pre>
<pre> <span class="kwrd"></</span><span class="html">overviewURL</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">overviewDoc</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"><</span><span class="html">categoryBag</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:xml:namespace"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="portType namespace"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="<b><span style="color: black;">[WSDL namespace]</span></b>"</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:wsdl:types"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="WSDL type"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="portType"</span><span class="kwrd">/></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">categoryBag</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"></</span><span class="html">tModel</span><span class="kwrd">></span></pre>
</div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 14pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><u><b><span style="font-size: large;"><br style="font-family: Times,"Times New Roman",serif;" /><span style="font-family: Times, 'Times New Roman', serif;">WSDL binding to tModel Mapping</span></span></b></u></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: large;"><span style="font-family: Georgia, 'Times New Roman', serif;">The information represent about a WSDL binding by the UDDI tModel is its entity type, local name, namespace, the location of the WSDL document that defines the binding, the portType that it implements, protocol, and optionally the transport information. Each WSDL binding maps to a UDDI tModel having same name as local name of the binding in the WSDL. The overviewURL provides the location of the WSDL document. In addition to that tModel contains a category bag with following keyedReferences</span></span></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span><br />
<ul style="font-family: Georgia,"Times New Roman",serif; text-align: justify;">
<li><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-size: large;">namespace of the binding (If the wsdl:binding has a targetNamespace). </span></span></li>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<li><span style="font-size: large;">type categorization as “binding” </span></li>
<li><span style="font-size: large;">binding characterized as type "wsdlSpec". </span></li>
<li><span style="font-size: large;">portType reference for wsdl:portType to which the wsdl:binding relates. </span></li>
<li><span style="font-size: large;">protocol categorization </span></li>
<li><span style="font-size: large;">transport categorization</span></li>
</span></ul>
<ul></ul>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 16pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><br />
<u><b><span style="font-family: Times, 'Times New Roman', serif;">Following is the structure of UDDI binding tModel</span></b></u></span></span><br />
<div style="background-color: transparent;">
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="kwrd"><</span><span class="html">tModel</span> <span class="attr">tModelKey</span><span class="kwrd">="uuid:49662926-f4a5-4ba5-b8d0-32ab388dadda"</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"><</span><span class="html">name</span><span class="kwrd">></span></pre>
<pre class="alt"> <b>[WSDL binding local name]</b></pre>
<pre><span class="kwrd"></</span><span class="html">name</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"><</span><span class="html">overviewDoc</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">overviewURL</span> <span class="attr">useType</span>=”<span class="attr">wsdlInterface</span>”<span class="kwrd">></span></pre>
<pre class="alt"> <b> [WSDL location URL]</b></pre>
<pre> <span class="kwrd"></</span><span class="html">overviewURL</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">overviewDoc</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"><</span><span class="html">categoryBag</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:xml:namespace"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="binding namespace"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="<b><span style="color: black;">[WSDL namespace]</span></b>"</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:wsdl:types"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="WSDL type"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="binding"</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:categorization:types"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="uddi-org:types"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="wsdlSpec"</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:wsdl:porttypereference"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="portType reference"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="<b><span style="color: black;">[tModel key of the PortType]</span></b>"</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:wsdl:categorization:protocol"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="<span style="color: black;"><b>[Protocol supported by the binding]</b></span>"</span></pre>
<pre> <span class="attr">keyValue</span>= <span class="kwrd">"<span style="color: black;"><b>[tModel key of the Protocol tModel]</b></span>"</span> <span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:wsdl:categorization:transportport"</span></pre>
<pre class="alt"> <span class="attr">keyName</span><span class="kwrd">="<span style="color: black;"><b>[Transport]</b></span>"</span></pre>
<pre> <span class="attr">keyValue</span><span class="kwrd">="<b><span style="color: black;">[tModel key of the Transport tModel]</span></b>"</span> <span class="kwrd">/></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">categoryBag</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"></</span><span class="html">tModel</span><span class="kwrd">></span></pre>
</div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><u><b><br style="font-family: Times,"Times New Roman",serif;" /><span style="font-family: Times, 'Times New Roman', serif; font-size: large;">WSDL port to UDDI bindingTemplate Mapping</span></b></u></span>
<br />
<div style="background-color: transparent;">
</div>
<div style="background-color: transparent;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span></span></span></span><br />
<div style="text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">A WSDL port maps to a bindingTemplate. The information represent about a WSDL port by the UDDI bindingTemplate is the binding that it implements, the portType that it implements, local name of the port and access point of the service. The bindingTemplate has tModelInstanceDetails element which contain the following tModelInstanceInfo elements.</span></span></span></span></span></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span></span></span></span><br />
<ul style="text-align: justify;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml">
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">tModelInstanceInfo with a tModelKey of the tModel corresponding to the binding that port implements. The instanceParms represent wsdl:port local name. </span></li>
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">A tModelInstanceInfo with a tModelKey of the tModel corresponding to the portType that port implements. </span></li>
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">The accessPoint is set from the location attribute on the extension element that is associated with the port element. </span></li>
</span></span></span></span></span></ul>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
<u style="font-family: Times, 'Times New Roman', serif;"><b><span class="Apple-style-span" style="font-size: large;">WSDL service to UDDI businessService Mapping</span></b></u><br />
<br />
</span></span></span></span><br />
<div style="font-family: Georgia,"Times New Roman",serif; text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;">A WSDL service maps to a businessService. The information represent about a service by the UDDI businessService is its entity type, local name, namespace, and the list of ports that it supports. The name of the businessService can be represented by the local name of the service in the WSDL. In addition to that businessService contains a category bag with following keyedReferences</span></span></span></span></span></div>
<div style="font-family: Times,"Times New Roman",serif; text-align: justify;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-size: large; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<ul style="font-family: Georgia,"Times New Roman",serif;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="font-size: large;"> </span></span></span></span><ul><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml">
<li><span style="font-size: large;">namespace of the service </span></li>
<li><span style="font-size: large;">local name of the service </span></li>
<li><span style="font-size: large;">type categorization as “service” </span></li>
</span></span></span></ul>
</span></ul>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<h5>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><u><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Following is the structure of UDDI businessService and bindingTemplate</span></span></span></span></span></span></span></span></span></span></span></span></span></u></span></span></span></span></h5>
<style type="text/css">
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: Consolas, "Courier New", Courier, Monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #a31515; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<br />
<div class="csharpcode">
<pre class="alt"><span class="kwrd"><</span><span class="html">businessService</span></pre>
<pre> <span class="attr">serviceKey</span><span class="kwrd">="102b114a-52e0-4af4-a292-02700da543d4"</span></pre>
<pre class="alt"> <span class="attr">businessKey</span>=<b>[<span class="attr" style="color: black;">businessKey</span> <span class="attr">of</span> <span class="attr">the</span> <span class="attr">bussinessEntity</span> <span class="attr">which</span> <span class="attr">this</span> <span class="attr">service</span> <span class="attr">belongs</span>]</b><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">name</span><span class="kwrd">></span><b>[Service local name]</b><span class="kwrd"></</span><span class="html">name</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">bindingTemplates</span><span class="kwrd">></span></pre>
<pre> <span class="rem"><!--WSDL port maps to a bindingTemplate--></span></pre>
<pre class="alt"> <span class="rem"><!--1 or more repetitions--></span></pre>
<pre> <span class="kwrd"><</span><span class="html">bindingTemplate</span></pre>
<pre class="alt"> <span class="attr">bindingKey</span><span class="kwrd">="f793c521-0daf-434c-8700-0e32da232e74"</span></pre>
<pre> <span class="attr">serviceKey</span><span class="kwrd">="102b114a-52e0-4af4-a292-02700da543d4"</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">accessPoint</span> <span class="attr">useType</span><span class="kwrd">="endpoint"</span><span class="kwrd">></span></pre>
<pre> <b>[EndPoint URL]</b></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">accessPoint</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">tModelInstanceDetails</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="rem"><!-- TModelInstanceInfo indicating the binding--></span></pre>
<pre> <span class="kwrd"><</span><span class="html">tModelInstanceInfo</span></pre>
<pre class="alt"> <span class="attr">tModelKey</span>=<b>[</b><b><span class="attr">tModel</span> <span class="attr">key</span> <span class="attr">of</span> <span class="attr">the</span> <span class="attr">binding</span> <span class="attr">tModel</span></b><b>]</b><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">description</span> <span class="attr">xml:lang</span><span class="kwrd">="en"</span><span class="kwrd">></span></pre>
<pre class="alt"> The wsdl:binding that this wsdl:port implements. The instanceParms specifies the port local name.</pre>
<pre> <span class="kwrd"></</span><span class="html">description</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">instanceDetails</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">instanceParms</span><span class="kwrd">></span><b>[WSDL port local name]</b><span class="kwrd"></</span><span class="html">instanceParms</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">instanceDetails</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"></</span><span class="html">tModelInstanceInfo</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="rem"><!--TModelInstanceInfo indicating portType --></span></pre>
<pre> <span class="kwrd"><</span><span class="html">tModelInstanceInfo</span></pre>
<pre class="alt"> <span class="attr">tModelKey</span>=<b>[<span class="attr">tModel</span> <span class="attr">key</span> <span class="attr">of</span> <span class="attr">the</span> <span class="attr">portType</span> <span class="attr">tModel</span>]</b><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">description</span> <span class="attr">xml:lang</span><span class="kwrd">="en"</span><span class="kwrd">></span></pre>
<pre class="alt"> The wsdl:portType that this wsdl:port implements</pre>
<pre> <span class="kwrd"></</span><span class="html">description</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">tModelInstanceInfo</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"></</span><span class="html">tModelInstanceDetails</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">bindingTemplate</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"></</span><span class="html">bindingTemplates</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">categoryBag</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre class="alt"> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:xml:namespace"</span></pre>
<pre> <span class="attr">keyName</span><span class="kwrd">="service namespace"</span></pre>
<pre class="alt"> <span class="attr">keyValue</span><span class="kwrd">="<span style="color: black;"><b>[Service namespace Value]</b></span>"</span><span class="kwrd">/></span></pre>
<pre> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre class="alt"> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:xml:localname"</span></pre>
<pre> <span class="attr">keyName</span><span class="kwrd">="service local name"</span></pre>
<pre class="alt"> <span class="attr">keyValue</span><span class="kwrd">="<span style="color: black;"><b>[Service local name value]</b></span>"</span><span class="kwrd">/></span></pre>
<pre> <span class="kwrd"><</span><span class="html">keyedReference</span></pre>
<pre class="alt"> <span class="attr">tModelKey</span><span class="kwrd">="uddi:uddi.org:wsdl:types"</span></pre>
<pre> <span class="attr">keyName</span><span class="kwrd">="WSDL type"</span></pre>
<pre class="alt"> <span class="attr">keyValue</span><span class="kwrd">="service"</span><span class="kwrd">/></span></pre>
<pre> <span class="kwrd"></</span><span class="html">categoryBag</span><span class="kwrd">></span></pre>
<pre class="alt"><span class="kwrd"></</span><span class="html">businessService</span><span class="kwrd">></span></pre>
</div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><br />
<u><b><span style="font-size: large;"><span style="font-family: Times, 'Times New Roman', serif;">Summary</span></span></b></u><br />
<span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"><br />
</span></span></span></span><br />
<ul style="text-align: justify;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml">
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">WSDL portType element is mapped to a UDDI tModel</span></li>
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">WSDL binding element is mapped to a UDDI tModel.</span></li>
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">WSDL port element is mapped to a UDDI bindingTemplate which has information about the WSDL binding and the WSDL portType implemented by port.</span></li>
<li><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">Finally WSDL service element is mapped to a UDDI businessService.</span></li>
</span></span></span></ul>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: 'Times New Roman'; font-size: 12pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><img height="301" src="https://lh3.googleusercontent.com/sZxFySscCjGDpiIy9i8yaIFYHeaY4pXDjKIqMMjNDfkdBJaeyFRUKKx62uAtaEl_9Z7gBhAxGw0JRi3waDi07bHjhsU9J5Sg2UeR91cqqJZKZ0g7Rg" width="400" /></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><br />
</span></span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: large;">This blog post has shown how to map WSDL document to the UDDI registry using the approach described in the OASIS UDDI Technical Note</span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"><a href="http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm">[2]</a></span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"> also it adheres to the UDDI Version 3.0.2 Specification </span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"><a href="http://uddi.org/pubs/uddi_v3.htm">[3]</a></span><br />
<div style="font-family: Georgia,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-size: large; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><u style="font-family: Times,"Times New Roman",serif;"><b><span style="font-size: large;"><br />
References</span></b></u></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span><br />
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span></div>
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[1] <a href="http://juddi.apache.org/">http://juddi.apache.org/</a></span></div>
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span></div>
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[2] <a href="http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm">http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm</a></span></div>
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span></div>
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[3] <a href="http://uddi.org/pubs/uddi_v3.htm">http://uddi.org/pubs/uddi_v3.htm</a></span></div>
<div style="color: black; font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br />
</span></div>
<div style="font-family: Times,"Times New Roman",serif;">
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="color: black;">[4] </span><a href="http://www.w3.org/TR/wsdl" style="color: black;">http://www.w3.org/TR/wsdl</a></span></div>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span xmlns="http://www.w3.org/1999/xhtml"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com3tag:blogger.com,1999:blog-4348809268720015403.post-10177447145354482182010-11-19T11:13:00.000-08:002014-11-19T08:49:29.930-08:00Generating project structure using Maven<div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">To generate the project structure using maven, we use m<span class="Apple-style-span" style="line-height: 15px;">aven's archetype mechanism. I</span><span class="Apple-style-span" style="line-height: 15px;">n Maven, an archetype is a template of a project which is combined with some user input to produce a working Maven project that has been tailored to the user's requirements (This </span><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;">help you generate the desired project structure depending on the application that you are trying to build.</span><span class="Apple-style-span" style="line-height: 15px;">)</span></span></div><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Following I have shown how you can use maven to generate a project structure for simple java application.</span></span></span></div><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></span></span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">mvn archetype:create -DgroupId=org.wso2.carbon -DartifactId=sample -DarchetypeArtifactId=maven-archetype-quickstart</span></b></span></span></div><span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></span></span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">This will generate a project structure as follows</span></span></div><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></b></span><br />
<div style="text-align: left;"><br />
</div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">|-- sample</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| |-- <b>pom.xml</b></span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- src</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| |-- main</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| | `-- java</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| | `-- org</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| | `-- wso2</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| | `-- carbon</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| | `-- App.java</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- test</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- java</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- org</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- wso2</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- carbon</span></span></div><div style="text-align: left;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;">| `-- AppTest.java</span></span></div><div style="text-align: left;"><br />
</div><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></b></span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="color: #2a2a2a; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">This will create App.java with package name as org.wso2.carbon and create default pom.xml as well as AppTest.java class for unit testing.</span></span></div><span class="Apple-style-span" style="color: #2a2a2a; font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="line-height: 16px;"><b><br />
</b></span></span>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com2tag:blogger.com,1999:blog-4348809268720015403.post-11132903603435031712010-11-12T20:50:00.000-08:002014-11-19T08:49:42.793-08:00How to find files in Ubuntu using Terminal<div style="text-align: center;"><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="color: #2a2a2a; font-style: normal;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Case insensitive searches can be achieved by using the -iname switch</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="color: #2a2a2a; font-style: normal;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br />
</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;">find /home -iname '*.mpg' -o -iname '*.avi'</span></span></span> </b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="color: #2a2a2a; font-style: normal;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Let'search for .avi files bigger than 700M. This can be done with.</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="color: #2a2a2a; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; font-style: normal;"><br />
</span></span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">find /home/ -name '*.avi' -a -size +700M</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px;"><br />
</span></span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px;"><br />
</span></span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="color: #2a2a2a; font-style: normal;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Now, let's find the same subset of files that were modified less than 15 days ago</span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px;"><span class="Apple-style-span" style="color: #2a2a2a; font-style: normal;"><br />
</span></span></span></span></span></b></div><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-style: italic; font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="color: #2a2a2a; font-style: normal;"><span class="Apple-style-span" style="color: black; font-style: italic;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">find /home/ -name '*.avi' -a -size +700M -mtime -15</span></span></span></span></span></b></div></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-45703437797587119912010-11-11T10:00:00.000-08:002010-11-11T10:51:22.418-08:00Creating a simple data service using WSO2 Data Services Server<div style="text-align: justify;">Here I am going to illustrate, how to use WSO2 Data Services Server for exposing data in a mysql database as a service.</div><br />
<h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal;"><u><b><span style="font-size: small;">Prerequisites</span><br />
</b></u></h3><ul><li><h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal;"><span style="font-size: small;">WSO2 Data Services Server - </span><span style="font-size: small;">download it from <a href="http://wso2.org/downloads/dss/" style="color: blue;">here</a><span style="color: blue;"> </span></span></h3></li>
<li><h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal;"><span style="font-size: small;">MySQL 5 or later version - download it from <a href="http://dev.mysql.com/downloads/mysql/5.1.html" style="color: blue;">here</a></span></h3></li>
<li><h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal;"><span style="font-size: small;">JDK 1.5 or Higher</span></h3></li>
</ul><h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal; text-align: justify;"><span style="font-size: small;">Let's create a database with a single table. Below I have given a mysql script for creating database with some data. </span></h3><h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal; text-align: justify;"><span style="font-size: small;"><br />
<pre class="java" name="code" style="font-family: Times,"Times New Roman",serif;">--
-- Create schema AccountDB
--
CREATE DATABASE IF NOT EXISTS AccountDB;
USE AccountDB;
--
-- Definition of table `AccountDB`.`account`
-- </pre></span></h3><h3 style="font-family: Times,"Times New Roman",serif; font-weight: normal; text-align: justify;"><span style="font-size: small;">CREATE TABLE `AccountDB`.`account` (<br />
`account_no` int(10) unsigned NOT NULL,<br />
`name` varchar(45) NOT NULL,<br />
`balance` int(11) NOT NULL<br />
) ENGINE=MyISAM DEFAULT CHARSET=latin1;<br />
</span></h3><div style="font-family: Times,"Times New Roman",serif;"><span style="font-size: small;">--<br />
-- Dumping data for table `AccountDB`.`account`<br />
--<br />
<br />
INSERT INTO `AccountDB`.`account` VALUES (1,'Michael',2000),<br />
(2,'David',3000),<br />
(3,'Kasun',1500),<br />
(4,'Mike',1500),<br />
(5,'Lucas',1500),<br />
(6,'John',1500),<br />
(7,'Robin',1500),<br />
(8,'Daniel',1500),<br />
(9,'Paul',1500),<br />
(10,'Oliver',1500);</span></div><br />
<div style="text-align: justify;"><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;">Here I have given the </span><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;">data services configuration file that I used. You can refer <a href="http://wso2.org/project/solutions/data-services/java/2.5.0/docs/quickstart_guide.html" style="color: blue;">this</a> documentation for creating the data service using data services server user interface, or you can write the dbs configuration file and upload it to data services server. Since we are using a MySQL database, you should copy mySQL JDBC driver to DSS_HOME/repository/components/lib</span></div><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwwDwKJXTGCOcAoWtVUqgelN4qt6_-D0tDxYImHpSXjfw0iRkcmCKo9KDWSyv9b2TIqDXtOkTE1KrJWFwl5VWTKQ8cjHYT2M7uz3Dacbojf9_PE056jOlqGUA21zzwr_dwCKqOvE5uMT0/s1600/DSSUpload.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwwDwKJXTGCOcAoWtVUqgelN4qt6_-D0tDxYImHpSXjfw0iRkcmCKo9KDWSyv9b2TIqDXtOkTE1KrJWFwl5VWTKQ8cjHYT2M7uz3Dacbojf9_PE056jOlqGUA21zzwr_dwCKqOvE5uMT0/s320/DSSUpload.png" width="320" /></a></div><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;">Here I have given my </span><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;">data services configuration file</span><br />
<br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"><data name="AccountDataService" enableBatchRequests="false" enableBoxcarring="false" serviceStatus="active"> <br />
<config id="Account"> <br />
<property name="org.wso2.ws.dataservice.driver"></span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> com.mysql.jdbc.Driver</span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> </property> <br />
<property name="org.wso2.ws.dataservice.protocol"></span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> jdbc:mysql://localhost:3306/AccountDB</span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> </property> </span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> <span style="color: blue;"> <!-- use your own mysql database username --> </span> </span><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> <br />
<property name="org.wso2.ws.dataservice.user">root</property> </span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> <span style="color: blue;"> <!-- use your own mysql database password --> </span> </span><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> <br />
<property name="org.wso2.ws.dataservice.password">password</property> </config> <br />
<query id="AccountDetails" useConfig="Account"> <br />
<sql>select account_no, name, balance from account </sql> <br />
<result element="account_details" rowName="account"> </span><br />
<span style="font-family: Georgia,"Times New Roman",serif; font-size: small;"> <span style="color: blue;"> <!-- mapping database columns to output field--> </span> <br />
<element name="accountNo" column="account_no" xsdType="xs:integer" /> <br />
<element name="name" column="name" xsdType="xs:string" /> <br />
<element name="balance" column="balance" xsdType="xs:integer" /> <br />
</result> <br />
</query> <br />
<operation name="getAccountDetails"> <br />
<description></description> <br />
<call-query href="AccountDetails" /> <br />
</operation><br />
</data> </span><br />
<br />
<div style="text-align: justify;"><span style="font-family: Georgia,"Times New Roman",serif; font-size: small;">After uploading the dbs file to the Data Services Server, Now you can see the Newly added AccountDataService in the services page. (Go to Manage->Services->List). Then you can try the service using "Try it".</span></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirg3zqWZy4DAZXxlvaeCSPG_8Y5wLGppKfqwduFCKviwrRwEAOTUCP5j3T3KVCRHr_Aj4IMcJsyjcWDb1k_pij9OLOVKzGj9C0Rr6M8hyyoZ6j3baawvJ2DNBdxLoB-kn32UQREeqsaQg/s1600/Screenshot-Try+the+AccountDataService+service+-+Mozilla+Firefox.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirg3zqWZy4DAZXxlvaeCSPG_8Y5wLGppKfqwduFCKviwrRwEAOTUCP5j3T3KVCRHr_Aj4IMcJsyjcWDb1k_pij9OLOVKzGj9C0Rr6M8hyyoZ6j3baawvJ2DNBdxLoB-kn32UQREeqsaQg/s320/Screenshot-Try+the+AccountDataService+service+-+Mozilla+Firefox.png" width="320" /></a></div><br />
<br />
<h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal;"><span style="font-size: small;"><br />
</span></h3><h3 style="font-family: Georgia,"Times New Roman",serif; font-weight: normal;"><span style="font-size: small;"> </span></h3>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com2tag:blogger.com,1999:blog-4348809268720015403.post-50038754197650897742010-11-11T04:45:00.000-08:002011-04-26T08:37:03.608-07:00Ubuntu Terminator useful shortcuts<span class="Apple-style-span" style="color: #333333; font-family: 'Ubuntu Beta', 'Bitstream Vera Sans', 'DejaVu Sans', Tahoma, sans-serif; font-size: 12px; line-height: 12px;"></span><br />
<div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">Screenshot of the Terminator </span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WvFn5dfzmdEPUEKapmia3Gerobd6UolMlOrqTgkt2M4fTAItyr61A_9mHq-yEllFtes4oXoZxbBU7NYmyNLm_KentUH2LNf92zohdv3HxpQh_hfBqCY_oGFC_NJxISANu2qKVe-sNk8/s1600/Terminator.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WvFn5dfzmdEPUEKapmia3Gerobd6UolMlOrqTgkt2M4fTAItyr61A_9mHq-yEllFtes4oXoZxbBU7NYmyNLm_KentUH2LNf92zohdv3HxpQh_hfBqCY_oGFC_NJxISANu2qKVe-sNk8/s320/Terminator.png" width="320" /></span></a></div><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"> </span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><b><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">
</span></b></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Ctrl+Shift+X </span></b><span class="Apple-style-span" style="font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">-</span></span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Toggle between showing all terminals and only showing the current </span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> one.</span></pre></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> <b>Ctrl+Shift+O</b> <b>-</b> Split terminals Horizontally.</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Ctrl+Shift+E -</span></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Split terminals Vertically.</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><b style="font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></b><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ctrl+Shift+Right</span></b><b style="font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> -</span></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Move parent dragbar Right.</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Ctrl+Shift+Left</span></b><b style="font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> - </span></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Move parent dragbar Left.</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><div style="text-align: justify;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Ctrl+Shift+Up</span></b><b style="font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> - </span></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Move parent dragbar <b style="font-weight: inherit;">Up</b>.</span></div><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> <b>Ctrl+Shift+Down</b><b style="font-weight: inherit;"> -</b> Move parent dragbar Down.</span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></div></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> <b>Ctrl+Shift+W -</b> Close the current terminal.</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-weight: inherit;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></span></span><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ctrl+Shift+T - </span></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Open new tab</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="color: #333333; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></span></span><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ctrl+Plus (+)</span></span><b style="color: #333333; font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> - </span></b><span class="Apple-style-span" style="color: #333333;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Increase font size. Note<b style="font-weight: inherit;">:</b> this may require you to press shift, depending on your</span></span><span class="Apple-style-span" style="color: #333333;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></span><span class="Apple-style-span" style="color: #333333;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">keyboard</span></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #333333; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">
</span></pre></span></pre></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></span><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ctrl+Minus (-)<span class="Apple-style-span" style="color: #333333;"> - </span></span></b><span class="Apple-style-span" style="color: #333333;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Decrease font size. Note<b style="font-weight: inherit;">:</b> this may require you to press shift, </span></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="color: #333333;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> depending on your </span></span><span class="Apple-style-span" style="color: #333333; font-family: Georgia, 'Times New Roman', serif;"> keyboard</span></pre></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></span><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></b></pre></span></pre></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"><span class="Apple-style-span" style="line-height: 12px; white-space: normal;"><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;"><span class="Apple-style-span" style="color: #333333; font-size: small;"><span class="Apple-style-span" style="font-size: 12px;"><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></b></span></span><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ctrl+Zero</span></b><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> </span></b><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">(0)</span></b><b style="color: #333333; font-weight: inherit;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> -</span></b><span class="Apple-style-span" style="color: #333333;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> Restore font size to original setting.</span></span></pre></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"></pre><div style="font-family: inherit; font-size: 12px;"></div></span></pre></span></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 12px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 12px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"></pre><pre style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 12px; font-style: inherit; line-height: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;"></pre></span></pre></span></pre></span></pre>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com14tag:blogger.com,1999:blog-4348809268720015403.post-59957793441998002702010-11-10T21:17:00.000-08:002014-11-19T08:49:55.342-08:00InteliJ IDEA shortcut keys<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;">IntelliJ IDEA is a <a href="http://en.wikipedia.org/wiki/Java_(programming_language)" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Java (programming language)"><span class="Apple-style-span" style="color: black;">Java</span></a> <a class="mw-redirect" href="http://en.wikipedia.org/wiki/Integrated_Development_Environment" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; text-decoration: none;" title="Integrated Development Environment"><span class="Apple-style-span" style="color: black;">IDE</span></a> by <span class="Apple-style-span" style="color: black;">JetBrains, It is more powerful IDE for java developments. Also It has lots of shortcut keys that make developers life easier. Below Image I have shown all most all IDEA shortcut keys.</span></span><br />
<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"><span class="Apple-style-span" style="color: black;"><br />
</span></span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaULUvs6kvYulXkhYwC8nPMHyjlYRzFYCjco124rKqwnhcv_a9xZ_m600-n7CQDPmJLCJ7hwnX4ogSPL6yB9fztVZflEI4PJAQoGn2XmPnaxqB6je-9xYrbs0T2x2LpJpxyTvG8UN3fJk/s1600/InteliJIDEA_shortcut_keys.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaULUvs6kvYulXkhYwC8nPMHyjlYRzFYCjco124rKqwnhcv_a9xZ_m600-n7CQDPmJLCJ7hwnX4ogSPL6yB9fztVZflEI4PJAQoGn2XmPnaxqB6je-9xYrbs0T2x2LpJpxyTvG8UN3fJk/s400/InteliJIDEA_shortcut_keys.png" width="400" /></a></div><br />
<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"><span class="Apple-style-span" style="color: black;"><br />
</span></span>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com1tag:blogger.com,1999:blog-4348809268720015403.post-30616248361562035152010-11-05T12:21:00.001-07:002014-11-19T08:50:06.687-08:00Useful SVN commands<div style="text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b><u>svn add</u></b></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn add</span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"> -</span> <span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Add files and directories </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">to your working copy and schedule them for addition to the repository. They will be uploaded and added to the repository on your next commit.</span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn add --non-recursive testDir</span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px;"> </span></span><span class="Apple-style-span" style="font-family: 'courier new', courier, fixed; font-size: 14px; white-space: pre;">- </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">You can add a directory without adding its contents </span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn add * --force - </span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">If </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">you want to add every unversioned object in your working copy</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn update </u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><b><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn up | svn update -</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> Update your working copy.</span></span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn up -r8000 </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">update your working copy to an older revision (revision 8000)</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><u><br />
</u></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn checkout</u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn co | svn checkout</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-weight: bold;"> </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Check out a working copy from a repository.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn co https://wso2.org/repos/wso2</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><b><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><u>svn delete</u></span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn del | svn delete - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Delete an item from a working copy or the repository.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn del testDir</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><b><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><u>svn mkdir</u></span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><b><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn mkdir</span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-weight: normal;"> </span><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">- </span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-weight: normal;">Create a new directory under version control.</span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><b><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn mkdir testDir</span></span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><b><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-weight: normal;"><br />
</span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><b><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><u>svn commit</u></span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn ci | svn commit - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Send changes from your working copy to the repository.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn ci -m "Added new functionality." </span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><b><u><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">svn move </span></u></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn move | svn mv </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">— Move a file or directory</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">$svn mv parentDir/test.txt parentDir/subDir</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">A parentDir/subDir/test.txt</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">D parentDir/test.txt</span></div><br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><b><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><u>svn cleanup</u></span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn cleanup - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Recursively clean up the working copy, removing locks resuming unfinished operations. If you ever get a “</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><span class="quote">working copy locked</span></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">” error, run this command to remove stale locks and get your working copy into a usable state again.</span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div></div><div style="text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn blame </u></b></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">svn blame — Show author and revision information in-line for the specified files or URLs. (This is only for files)</span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">As an example </span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div></div><div style="text-align: left;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn blame https://wso2.org/repos/wso2/trunk/carbon/core/samples/pom.xml</span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span></div></div><div style="text-align: justify;"></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <project xmlns="http://maven.apache.org"></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <parent></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <groupId>org.wso2.carbon</groupId></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <artifactId>carbon-parent</artifactId></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 72444 ruwan <version>3.1.0-SNAPSHOT</version></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda </parent></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 ruwan <modelVersion>4.0.0</modelVersion></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <artifactId>samples</artifactId></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <packaging>pom</packaging></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <name>samples</name></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <description>samples</description></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <url>http://wso2.org</url></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda <modules></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15687 saminda <module>org.wso2.carbon.sample</module></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda </modules></span></div></div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> 15686 saminda </project></span></div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><b><u><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">svn diff</span></u></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn diff -</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> Display the differences between two paths.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn diff trunkDir - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Compare </span><tt class="literal"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">repository</span></tt><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> and your working copy.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn diff -r 3900 trunkDir - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">working copy's modifications compare against an older revision</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn diff</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> </span><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">https://wso2.org/repos/wso2/trunk/carbon/pom.xml@3000 </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> </span><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">https://wso2.org/repos/wso2/trunk/carbon/pom.xml@3010 - </span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Compare revision 3000 to revision 3010 using “<span class="quote">@</span>” syntax</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b><u>svn cat</u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">svn cat - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Output the contents of the specified files or URLs.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">$</span><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn cat</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> </span><span class="Apple-style-span" style="font-family: 'courier new', courier, fixed; font-size: 14px; white-space: pre;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: medium; white-space: normal;">https://wso2.org/repos/wso2/trunk</span>/test/readme.txt - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">you can view readme.txt in your repository without checking it out</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn log</u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn log</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Display commit log messages.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn log - </span><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">sample log is shown below.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">------------------------------------------------------------------------</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">r121 | pradeeban | 2010-10-17 01:13:37 +0530 (Sun, 17 Oct 2010) | 2 lines</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Applying the patch for ARCHITECTURE-25 provided by kasunw. BPS loan approval demo was added with necessary documentation with minor change to Account Service client, in this patch. </span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">------------------------------------------------------------------------</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">r119 | lahiru | 2010-10-16 23:09:01 +0530 (Sat, 16 Oct 2010) | 2 lines</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">applying patch from kasun for https://wso2.org/jira/secure/ManageAttachments.jspa?id=25441.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">------------------------------------------------------------------------</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">r118 | lahiru | 2010-10-16 23:07:56 +0530 (Sat, 16 Oct 2010) | 2 lines</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">applying patch from kasun.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">------------------------------------------------------------------------</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">r117 | lahiru | 2010-10-16 22:42:04 +0530 (Sat, 16 Oct 2010) | 2 lines</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">adding patch given by kasun.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">------------------------------------------------------------------------</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">r116 | kasunw | 2010-10-15 00:44:58 +0530 (Fri, 15 Oct 2010) | 2 lines</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">changes to platform demo, using carbon studio, and minor feature adding like automating using ant.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn revert</u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn revert - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">Undo all local edits.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn revert foo.java </span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn revert testDir --recursive - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">If you want to revert a whole directory of files, use the <tt class="option" style="font-family: 'courier new', courier, fixed;">--recursive</tt> flag.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn resolved</u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><b><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b class="command" style="font-family: 'courier new', courier, fixed; font-style: normal; font-weight: normal;">resolved</b> - Once you've resolved the conflict, </span></span></b><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">run <b class="command" style="font-family: 'courier new', courier, fixed; font-style: normal; font-weight: normal;">svn resolved</b> to let your working copy know you've taken care of everything</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br />
</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><b><u>svn list</u></b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn list</span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"> - </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">List directory entries in the repository.</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">svn list https://wso2.org/repos/wso2/trunk/carbon</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">components/</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">core/</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">dependencies/</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">features/</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">orbit/</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">pom.xml</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">products/</span></div><br />
<div style="font-family: arial, helvetica, sans-serif; font-weight: bold; text-align: center; text-decoration: underline;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0tag:blogger.com,1999:blog-4348809268720015403.post-58139025472840079482010-11-04T12:16:00.000-07:002014-11-19T08:50:17.368-08:00Stream processing on WWW data<div style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">This is about my final year project at university of Moratuwa. We named this project as Glutter, the name 'Glutter‘ is the result of a combination of the words 'Clutter‘ and 'Gutter‘. So as the name implies, 'Glutter‘ operates as a gutter which is connected to a clutter of information. In other words, it enables the users to gather information from various sources and then set up rules for how that content should be filtered and modified to fit the requirements of the users.</span></div><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">This projetct is something similar to the Yahoo Pipes, because Yahoo Pipes also works by enabling users to gather information from different sources and then setting up rules on how that content should be modified (Filtering, renaming, truncating , translating etc.). But the main limitation of yahoo pipes is that it is not aware of temporal aspects and causality of events in the web which hinders the usefulness drastically. Therefore as a solution to that we introduce the Glutter. The approach in Glutter is to use Complex Event Processing on web events thus enabling temporal querying and an awareness of causality in its operators. It supports more input and output means such as Twitter, Email, Feeds, Web services, CSV data, XMPP Chats etc, thus making it more connected to the real-time web.</span></div><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">The following video shows the concept of the project.</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dyT4fltZUbT-Klhd2qw3SqBYK2eS9VeiBzyTU_AgvaanwvlRuxKFibJCGy9dIdbNTZfMR0kQVORPGIpoB2pSg' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div><br />
<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"><br />
</span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">when a typical </span></span><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">internet user steps into the internet, </span></span><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">the information keep flowing at him in a real time manner</span></span><span class="Apple-style-span" style="border-collapse: collapse; color: #888888;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"> </span></span><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">and its difficult for his to keep track of it. also </span></span><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">the internet is a huge mess of data and to make things worse, its a dynamically changing mess. Therefore </span></span><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Glutter can<span class="Apple-style-span" style="color: #888888;"> </span></span></span><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">acts as an intermediate in between the clutter of information and the web user, so by using Glutter he can get only information that he is interesting, in real time manner.</span></span></div><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">The main objective of Glutter is to empower the user by allowing him to decide what, when, and how to view and get-notified-of information in the web without the developers designing and deciding it(Without even writing a single line of code). The client is provided a sophisticated workbench to create workflows according to his preference in order to decide 'what‘ to view and when the information should be delivered.</span></div><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span><br />
<div style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">For creating workflows we have given a user interface (Workbench), which allows users to create workflows and run them against web data sources. The workbench consists of a toolbox containing drag and drop components which could be used to construct workflows using a graphical user interface. The main components can be categorized as,</span></div><br />
<ul><li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Connectors - Connectors are used to establish the connection to various data sources. Currently Glutter consists of 5 connectors which support RSS/ Atom Feeds, EMail (pop/imap), Twitter, CSV, and Pull based Querying of Webservices.</span></li>
</ul><ul><li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Operators - Operators allow the user to perform many different operations on the stream. </span></li>
</ul><ul><li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Sink - Sinks are the end components of a workflow, and users can get the output of the workflow in many different forms such as an EMail, a Tweet, XMPP Message, or can be viewed in the viewer section.</span></li>
</ul><div style="text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><b>All components are listed below</b></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgsFonLl4rxIs6M5jonvB8BS398tJ5RG4ePzaV6_5ulM7cwi67_Rt1-OrKr5I7eNXnf1KWvdhvR59qdnU-88ytvUTqrKB06QtOA0zn-c_25E4FL3uNfXhhzDY2EZykw_CkgM63z-4v3Ls/s1600/component.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="222" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgsFonLl4rxIs6M5jonvB8BS398tJ5RG4ePzaV6_5ulM7cwi67_Rt1-OrKr5I7eNXnf1KWvdhvR59qdnU-88ytvUTqrKB06QtOA0zn-c_25E4FL3uNfXhhzDY2EZykw_CkgM63z-4v3Ls/s400/component.png" width="400" /></a></div><br />
<br />
</div><div style="text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Following I have shown a sample workflow</span></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvMcwJOtGEYYV-3Mp5wxXyeFtGPSKD5AWADqZbvHr4wiCErgdemwm0PTqLqppcxL5b-06y9z77xFtI5A19ckGczH9TshbfFJxqZ6aaFIK6LJvNWJJfubOweNduCkn5dWurJ3c_WrA5WTw/s1600/GlutterWorkbench.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvMcwJOtGEYYV-3Mp5wxXyeFtGPSKD5AWADqZbvHr4wiCErgdemwm0PTqLqppcxL5b-06y9z77xFtI5A19ckGczH9TshbfFJxqZ6aaFIK6LJvNWJJfubOweNduCkn5dWurJ3c_WrA5WTw/s320/GlutterWorkbench.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">In this scenario, user is interested in particular news, but those news are in different languages, also user is interested to know, which country belongs that news. Then he can use Glutter to do his task. As shown in the above figure. User get feeds in Dutch, Spanish languages and another one from English language. Those news feeds can be fetched using 3 feed connector, then he can use our translate operator to translate news feeds to English language. Now all different language feeds are converted to English then by using union operator he can get all feeds as one feed. Since he need to view the news based on Geo location, we can use semantic operator to do this task. Because it can analyse the text and can extract geo location within that text semantically, then these Geo location details are added to every news feed item. After that those results are sent to the data sink, so that it can be viewed using Viewer which support map view. </span></div><div class="separator" style="clear: both; text-align: justify;"><br />
</div><div class="separator" style="clear: both; text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Following I have shown the map viewer.</span></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmfJiilj6-1U9ysO7ajufq5-J6pLaHO5qyYLwobHaSkDtcmFny-YcqdKutVHYvZq0wyY9r1RcbalmnuLRLHAWkRQBXRSDeNTwCtzOfkqrZudOjw5rv6vwKHNm-tGRvzbMmyr5Dc-7v6tE/s1600/MapView.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="174" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmfJiilj6-1U9ysO7ajufq5-J6pLaHO5qyYLwobHaSkDtcmFny-YcqdKutVHYvZq0wyY9r1RcbalmnuLRLHAWkRQBXRSDeNTwCtzOfkqrZudOjw5rv6vwKHNm-tGRvzbMmyr5Dc-7v6tE/s320/MapView.jpeg" width="320" /></a></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">This is only one example that I have given to show the power of the Glutter. Bellow I have given other use cases</span></div><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span><br />
<ul><li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Another possible use case could be redirection of data channels. That means fetch interesting tweets to email or chat, also you can feed your blog to twitter (you could add more filtering operations in between in order to control what gets tweeted from your blog). </span></li>
<li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Email auto-replier.</span></li>
<li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Send notification emails when price below some level for ebay item.</span></li>
<li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Stock market data related chat notification (when price increase and decrease) (can use pattern recognition operator)</span></li>
<li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">When interesting feed comes user can do the google search (using web service operator) based on content of the feed and get addition links for that news.</span></li>
<li style="text-align: justify;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">There are many more. It depends on the creativity of the user :) (Since we have given lot of connectors, operators and sinks)</span></li>
</ul><div><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">The some of resulting viewers are shown below.</span></div><div><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq95xBY6gv5-JVWFYV8dxYb1V3JskPktxdvXDXGfY1yluX91Jwj0EpNPAH41ob0YZiYwNCh23yiiB3_P52RF8cjhIjXD136z-nCxxlHes7dyKTTMbR7FTw2_sBV4cmUiGtKb33XCUEiFw/s1600/ColumnChart.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq95xBY6gv5-JVWFYV8dxYb1V3JskPktxdvXDXGfY1yluX91Jwj0EpNPAH41ob0YZiYwNCh23yiiB3_P52RF8cjhIjXD136z-nCxxlHes7dyKTTMbR7FTw2_sBV4cmUiGtKb33XCUEiFw/s320/ColumnChart.jpeg" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><b>Line Chart</b></span></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeB23uj80JLoLEd5mp-SjIaffG6MDRV-cUhdsCTWBmKQYWwHG0ijo45tG-7jIQirwaOCDThs0OPsw84IgzUupWxB0lxEO_sV0Q4v68B9F1X8T42DdJlD4EUc4Urp-XgGcqINtFMfO79-0/s1600/AreaChart.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeB23uj80JLoLEd5mp-SjIaffG6MDRV-cUhdsCTWBmKQYWwHG0ijo45tG-7jIQirwaOCDThs0OPsw84IgzUupWxB0lxEO_sV0Q4v68B9F1X8T42DdJlD4EUc4Urp-XgGcqINtFMfO79-0/s320/AreaChart.jpeg" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><b><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">Area Chart</span></b></div><div class="separator" style="clear: both; text-align: center;"><b><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"><br />
</span></b></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_cRTrgSVHiKOGPD_KsKsdvzooB-FlO_uyRFtIzLKbI39IMmKuOMOk1tgCY3uCrv-hvdHYhnImPWZ_HiHwtfU1M9xcOTHsv8SLiImihUqw5KYve2mFDMkdYFqGetCuIN4nlprdgTw06fI/s1600/ListView.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="140" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_cRTrgSVHiKOGPD_KsKsdvzooB-FlO_uyRFtIzLKbI39IMmKuOMOk1tgCY3uCrv-hvdHYhnImPWZ_HiHwtfU1M9xcOTHsv8SLiImihUqw5KYve2mFDMkdYFqGetCuIN4nlprdgTw06fI/s320/ListView.jpeg" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><b><span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;">List View</span></b></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8pvrzr6_pKGSkJB2-R3N3oWmrKBA5YhwZ5GkZRDWuAxCq9KpcT8HaUsKQGjGTqMX6Ou_ADPdd_th5D6XmA13OzvPPqglqJeWRpLrXKOlE7Xw5_YPuAdBzB2zfqmTLqYdxR0lDXkf1Qig/s1600/Dock3.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8pvrzr6_pKGSkJB2-R3N3oWmrKBA5YhwZ5GkZRDWuAxCq9KpcT8HaUsKQGjGTqMX6Ou_ADPdd_th5D6XmA13OzvPPqglqJeWRpLrXKOlE7Xw5_YPuAdBzB2zfqmTLqYdxR0lDXkf1Qig/s320/Dock3.jpeg" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBmvQFutiswUkVu8ms7KJ3UW4YvvvzGV-YTtPmGvrPzfPwQIY5tPWSyy3889u7JNQ2C8JkUo61yzYv7OuuLiUARYQfjg1pryYa6btGYWd9Yq05p-Aeu0i2cl_risjM7HgvnpUPQUvzGKE/s1600/DockView.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBmvQFutiswUkVu8ms7KJ3UW4YvvvzGV-YTtPmGvrPzfPwQIY5tPWSyy3889u7JNQ2C8JkUo61yzYv7OuuLiUARYQfjg1pryYa6btGYWd9Yq05p-Aeu0i2cl_risjM7HgvnpUPQUvzGKE/s320/DockView.jpeg" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div></div><br />
<div><br />
</div><div><br />
</div><div><br />
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- kasunweranga_footer-1_AdSense2_468x60_as -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-0292534626289806"
data-ad-slot="9665442321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>Kasun Weranga Gunathilakehttp://www.blogger.com/profile/05640002235489202863noreply@blogger.com0