<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7746530518764498796</id><updated>2024-08-27T22:57:48.016-07:00</updated><title type='text'>sajeev 4 u :-)</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-5312783741755670533</id><published>2012-01-31T02:49:00.000-08:00</published><updated>2012-01-31T02:49:23.667-08:00</updated><title type='text'>Connect to SQL/Oracle database from batch file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
This blog guides you through the basic steps that you will have to follow to connect to database from a batch file on any windows machine.&lt;br /&gt;
As usual the first few lines in a batch/shell needs to start with the description on the use/purpose of batch file.&lt;br /&gt;
&lt;br /&gt;
@REM Date Created : 31 Jan 2012&lt;br /&gt;
@REM Author : Sajeev&lt;br /&gt;
@REM Task : Connect to database from batch file&lt;br /&gt;
&lt;br /&gt;
Next step would be to set the environmental variables which are required to establish a successful handshake with the database .&lt;br /&gt;
&lt;br /&gt;
While writting my first batch file I faced some difficulties in retrirving the data from database and storing the results into batch variables .&lt;br /&gt;
The solution that came&amp;nbsp;across was storing the data into a local temp file(this operation is done by query.sql file) later once the data extraction from db is through the value can be&amp;nbsp;stored inside a variable by reading the data from the file.&lt;br /&gt;
&lt;br /&gt;
Below is the line of code that would read the data from a temperoray file and store it into the variable.&lt;br /&gt;
sqlplus is the command that is used to connect to the database that I have and followed by it is the schema,username and password.&lt;br /&gt;
Once these credentials are defined , the sql query that needs to be executed needs to be present inside query.sql file as in this example , more info on the&amp;nbsp;contents inside querl.sql file will be available in the later part of this post.&lt;br /&gt;
&lt;br /&gt;
sqlplus ABC@scott/tiger @D:\scripts\query.sql&lt;br /&gt;
cd D:\scripts\&lt;br /&gt;
set SEPARATOR=\&lt;br /&gt;
set filecontent=&lt;br /&gt;
for /f &quot;delims=&quot; %%a in (result.txt) do (&lt;br /&gt;
&amp;nbsp; set tempCnt=%%a&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
The code from line number 2-7 does the purpose of reading the temp file and storing the value in tempCnt variable.&lt;br /&gt;
In the above code snippet , the reason for providing the sql file in the same line as that of sqlplus command is ? &amp;nbsp;Because when I used to run the batch file&amp;nbsp;which would contain sqlplus ABC@scott/tiger and followed by sql query in next line then the command prompt used to display that the batch file has been&amp;nbsp;connected to database but it doesn&#39;t execute the query.So by specifying the sql file in the same line as the sqlplus command made sure that the query gets&amp;nbsp;executed after the connection is established.&lt;br /&gt;
&lt;br /&gt;
Below is the content of the query.sql file . This file contains a query that retrievs the count from employee table.&lt;br /&gt;
&lt;br /&gt;
set pagesize 0&lt;br /&gt;
set spool on&lt;br /&gt;
spool D:/scripts/result.txt&lt;br /&gt;
select count(1) from employee ;&lt;br /&gt;
spool off&lt;br /&gt;
exit;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
set PAGESIZE to zero = suppresses all headings, page breaks, titles, the initial blank line, and other formatting information.&lt;br /&gt;
spool = Store query results in file&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/5312783741755670533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2012/01/connect-to-sqloracle-database-from.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5312783741755670533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5312783741755670533'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2012/01/connect-to-sqloracle-database-from.html' title='Connect to SQL/Oracle database from batch file'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-5711242383447424199</id><published>2011-09-27T02:02:00.000-07:00</published><updated>2011-09-28T22:43:08.295-07:00</updated><title type='text'>Automated Javascript Test Framework - JSTestDriver-Remote JS console - maven</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;There are number of factors that goes into deciding the Framework that would help automate the tests involved in testing the product again newly arriving build . As it is very important to make sure that we have all the test cases in place which can be executed against every new build and make sure that the product is stable.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;1 ) Asynchronous Test &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The test framework should allow rather support Asynchronous tests .&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;2) Run against build tools.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This feature will make sure that before the final release build is prepared all the test are executed and the result are in hand .&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;3) Browser support &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This feature will remove the manual intervention for starting the browser for executing the test (Applicable to only those projects which needs browsers to test the product ).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;We now have a lot of test of test frameworks available which can perform most of the above task involved in Unit Testing the product.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;JSTestFDriver&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;YUI &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;JSUnit&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;And many more. This article will focus on JSTestDriver &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;How JSTestDriver Works?&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;It starts of by launching a server (Java process ) which holds the responsibility of loading the test runner code into the browser(acts as slave) . Once this happens the browser can be controlled by the server which sends across command to the browser to load the test resources . JSTestDriver has a &lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;jsTestDriver.conf&#39;&lt;/span&gt; file (which can be easily configured)&amp;nbsp; which let the developer configure the files that the browser needs to load to run the tests.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Configuration File&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #EEEEEE; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;&quot;&gt;&lt;span style=&quot;color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: #666600; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt; http&lt;/span&gt;&lt;span style=&quot;color: #666600; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #880000; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;//localhost:9876&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;color: #666600; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #666600; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt; src&lt;/span&gt;&lt;span style=&quot;color: #880000; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;/*.js&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: #880000; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #880000; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;&amp;nbsp; - src-test/*.js&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: &#39;Lucida Console&#39;; font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;The very first line in this conf file is URL that the browser needs to use to contact the server&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Load directive tells the browser on the resources that needs to be loaded , one need to note that the resources loaded will be in the same sequence in which they are specified in the conf file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Out here by resources it means to include the files that has the test written which are being implemented as a part of automation of tests(Unit tests).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;9876 is the port on which JSTest server runs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Configuring JSTestDriver in Maven&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;pom.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;Pom file needs to be configured with the jstestdriver details&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&amp;lt;dependency&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;com.google.jstestdriver&amp;lt;/groupId&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;maven-jstestdriver-plugin&amp;lt;/artifactId&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;version&amp;gt;1.3.2.1&amp;lt;/version&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&amp;lt;plugins&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;lt;plugin&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;com.google.jstestdriver&amp;lt;/groupId&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;maven-jstestdriver-plugin&amp;lt;/artifactId&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.3.2.1&amp;lt;/version&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;executions&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;execution&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;run-tests&amp;lt;/id&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;phase&amp;gt;integration-test&amp;lt;/phase&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;goals&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 2.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;goal&amp;gt;test&amp;lt;/goal&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/goals&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;debug&amp;gt;true&amp;lt;/debug&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 2.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config&amp;gt;${project.basedir}/test/conf/jsTestDriver.conf&amp;lt;/config&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 2.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;browser&amp;gt;${browser.command}&amp;lt;/browser&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 2.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;port&amp;gt;9876&amp;lt;/port&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 2.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;basePath&amp;gt;${project.basedir}/src&amp;lt;/basePath&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/execution&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/executions&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;lt;/plugin&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/plugins&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;./src/test/conf/jsTestDriver.conf &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in;&quot;&gt;Define the server URL , resources that needs to be loaded by JSTestDriver&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;&lt;span style=&quot;color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;Maven settings.xml&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&amp;lt;profile&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;id&amp;gt;jstests&amp;lt;/id&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activation&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activeByDefault&amp;gt;true&amp;lt;/activeByDefault&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activation&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;browser.command&amp;gt;c:/Program Files/Mozilla Firefox/firefox.exe&amp;lt;/browser.command&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;br /&gt;
&amp;lt;/profile&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This configuration defines the browsers that will be loaded while the JSTestDriver is started.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; color: black; font-family: Helvetica, sans-serif; font-size: 10pt;&quot;&gt;There is a very nice WIKI page created on JSTestDriver which would be worth taking a look at &lt;a href=&quot;http://code.google.com/p/js-test-driver/wiki/GettingStarted&quot;&gt;Getting Started&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/5711242383447424199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2011/09/javascript-test-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5711242383447424199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5711242383447424199'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2011/09/javascript-test-framework.html' title='Automated Javascript Test Framework - JSTestDriver-Remote JS console - maven'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-8977899764251096225</id><published>2011-07-07T23:39:00.000-07:00</published><updated>2011-07-07T23:39:22.061-07:00</updated><title type='text'>Installing Sun Java in Ubuntu</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;Recently I came across issue with using the Iced Tea for run my java code in Ubuntu OS and this behavior is inconsistent , even after looking at number of online posts didn’t help in figuring out the exact cause or the work around to fix it . Hence I finally decide to remove IcedTea and install Sun version of Java .&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Below are the steps that one need to follow to install Sun java in Ubuntu&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;sudo add-apt-repository &quot;deb http://archive.canonical.com/ lucid partner&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;sudo apt-get update&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;sudo apt-get install sun-java6-jdk&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;sudo apt-get install sun-java5-plugin&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Restart the system and you can verify the installation by typing java –version in terminal&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Also you can check the java plugin for browser by Open FF -&amp;gt; Tools -&amp;gt; Add On -&amp;gt;Plugin&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Before doing the above steps make sure you have uninstalled the IcedTea through Symantec manager(the package management system in Ubuntu) and to launch it one will have to navigate through &lt;span&gt;System&lt;/span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;span&gt;Administration&lt;/span&gt;&amp;nbsp;-&amp;gt; &lt;span&gt;Synaptic Package Manager&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/8977899764251096225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2011/07/installing-sun-java-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/8977899764251096225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/8977899764251096225'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2011/07/installing-sun-java-in-ubuntu.html' title='Installing Sun Java in Ubuntu'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-6970929667452293651</id><published>2011-07-02T02:43:00.000-07:00</published><updated>2011-07-02T02:43:08.607-07:00</updated><title type='text'>Automate Active MQ Broker start/stop through maven</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;While writing integration test most of the time you need to start and stop Active MQ manually which most of you won’t prefer doing by this I mean get things automated . This can be easily done using maven(I have really started loving this tool ) plugin where in before you automated test start maven while start the Active MQ service . Below are the things that the developer had to do in maven &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;First you need to configure pom with the Maven plugin for Active MQ details&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;plugin&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;groupId&amp;gt;org.apache.activemq.tooling&amp;lt;/groupId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;artifactId&amp;gt;maven-activemq-plugin&amp;lt;/artifactId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;version&amp;gt;5.4.0&amp;lt;/version&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;configUri&amp;gt;xbean:file:src/main/resources/activemq.xml&amp;lt;/configUri&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;fork&amp;gt;true&amp;lt;/fork&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;systemProperties&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;property&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;name&amp;gt;javax.net.ssl.keyStorePassword&amp;lt;/name&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;password&amp;lt;/value&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;property&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;name&amp;gt;org.apache.activemq.default.directory.prefix&amp;lt;/name&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&amp;lt;value&amp;gt;${project.build.directory}/target/&amp;lt;/value&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;/property&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/systemProperties&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/configuration&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;dependencies&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;dependency&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;groupId&amp;gt;org.springframework&amp;lt;/groupId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;artifactId&amp;gt;spring&amp;lt;/artifactId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;version&amp;gt;2.5.5&amp;lt;/version&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/dependency&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;dependency&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;groupId&amp;gt;org.mortbay.jetty&amp;lt;/groupId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;artifactId&amp;gt;jetty-xbean&amp;lt;/artifactId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;version&amp;gt;6.1.11&amp;lt;/version&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/dependency&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;dependency&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;groupId&amp;gt;org.apache.camel&amp;lt;/groupId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;artifactId&amp;gt;camel-activemq&amp;lt;/artifactId&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;version&amp;gt;1.1.0&amp;lt;/version&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/dependency&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/dependencies&amp;gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/plugin&amp;gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Secondly , we will have to create activemq.xml which is the configuration file for Active MQ .&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;xmlns:amq=&quot;http://activemq.apache.org/schema/core&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;http://activemq.apache.org/schema/core&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;http://activemq.apache.org/schema/core/activemq-core.xsd&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;broker xmlns=&quot;http://activemq.apache.org/schema/core&quot; brokerName=&quot;localhost&quot; dataDirectory=&quot;./data&quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;systemUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;systemUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;memoryUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;memoryUsage limit=&quot;20 mb&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/memoryUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;storeUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;storeUsage limit=&quot;1 gb&quot; name=&quot;foo&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/storeUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;tempUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;tempUsage limit=&quot;100 mb&quot;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/tempUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/systemUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/systemUsage&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;!-- The transport connectors ActiveMQ will listen to --&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;transportConnectors&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;transportConnector name=&quot;openwire&quot; uri=&quot;tcp://0.0.0.0:61616&quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;transportConnector name=&quot;stomp&quot; uri=&quot;stomp://0.0.0.0:61613&quot; /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/transportConnectors&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;/broker&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&amp;lt;/beans&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;That’s it , once you are done with the above two steps you need to open up your system terminal and run &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;mvn clean install activemq:run -Dmaven.test.skip=true&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/6970929667452293651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2011/07/automate-active-mq-broker-startstop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/6970929667452293651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/6970929667452293651'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2011/07/automate-active-mq-broker-startstop.html' title='Automate Active MQ Broker start/stop through maven'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-3367305182048774413</id><published>2011-07-02T02:16:00.001-07:00</published><updated>2011-07-02T02:16:48.200-07:00</updated><title type='text'>AuthBind</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span&gt;Authbind&lt;/span&gt;&amp;nbsp;is an&amp;nbsp;Open source&amp;nbsp;system utility which allows a&amp;nbsp;program&amp;nbsp;that would normally require&amp;nbsp;superuser&amp;nbsp;privileges to access&amp;nbsp;privileged&amp;nbsp;network services&amp;nbsp;to run as a non-privileged user.&amp;nbsp;Authbind allows the&amp;nbsp;system administrator&amp;nbsp;to permit specific&amp;nbsp;users&amp;nbsp;and groups access to bind to TCP&amp;nbsp;and&amp;nbsp;UDP&amp;nbsp;ports below 1024&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;$ sudo apt-get install authbind&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
You can use&amp;nbsp;dpkg&amp;nbsp;to know more about authbind after installing it&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;$ dpkg -s authbind&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/3367305182048774413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2011/07/authbind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/3367305182048774413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/3367305182048774413'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2011/07/authbind.html' title='AuthBind'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-2235216389242689426</id><published>2011-01-19T19:39:00.000-08:00</published><updated>2011-01-19T19:39:25.270-08:00</updated><title type='text'>Error number 1008 message while starting IBM web sphere</title><content type='html'>This WIKI page is with respect to issue of not able to start the web sphere MQ server .&lt;br /&gt;
The error code the I was getting was 1008 and the alert that it prompted was as below&lt;br /&gt;
Error number: 1008 message: attempt to reference a token that does not exist occurs when trying to start MQ&lt;br /&gt;
One can go into the windows system event log to find out the exact cause of the issue as it can be because of many reasons .&lt;br /&gt;
It can be because of permissions issue not being set for the mq services  for this one can follow the steps mentioned in the below link and  hopefully it should resolve the issue .&lt;br /&gt;
&lt;a class=&quot;external-link&quot; href=&quot;http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.amqzag.doc/fa12250_.htm&quot; rel=&quot;nofollow&quot;&gt;http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.amqzag.doc/fa12250_.htm&lt;/a&gt;&lt;br /&gt;
But before going into the above link I would suggest to just try by  starting the mq services manually by going into \IBM_HOME\WebSphere  MQ\bin\ and execute the  amqmsrvn.exe which is the MQ service process  launched by way of dcom ,it normally runs under SYSTEM account .&lt;br /&gt;
To stop the amqsvc.exe process (other than by using the &#39;net stop IBM MQSeries&#39; command), run the command &quot;amqsvc -stop&quot;.&lt;br /&gt;
The MQSeries (Windows) service (amqsvc) has a few command line options to help should problems arise:&lt;br /&gt;
amqsvc.exe&lt;br /&gt;
-INSTALL : Reinstalls the registry keys to make the MQ Service defined&lt;br /&gt;
-UNINSTALL : Removes the MQSeries service&lt;br /&gt;
-SILENT : Hides error messages when install/uninstall performed&lt;br /&gt;
-START : Starts the service (Use Net Start &quot;MQSeries Service&quot; instead?)&lt;br /&gt;
-STOP : Stops the service (Use Net Stop &quot;MQSeries Service&quot; instead?)</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/2235216389242689426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2011/01/error-number-1008-message-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/2235216389242689426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/2235216389242689426'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2011/01/error-number-1008-message-while.html' title='Error number 1008 message while starting IBM web sphere'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-3020646618459311004</id><published>2010-12-16T20:38:00.000-08:00</published><updated>2010-12-16T20:38:33.738-08:00</updated><title type='text'>Song from a stolen heart</title><content type='html'>Hey! Girl,&lt;br /&gt;
I forgot to blink my eyes, coz of ur grace&lt;br /&gt;
A thousand dreams.&lt;br /&gt;
A thousands nights shall melt&lt;br /&gt;
Its only U, coming and going&lt;br /&gt;
Bring back my eyes, that u have stolen!&lt;br /&gt;
&lt;br /&gt;
Oh Girl.I cant get u out of my mind&lt;br /&gt;
my life....giving away is right&lt;br /&gt;
&lt;br /&gt;
I&#39;ll b a shadow on the paths that you go&lt;br /&gt;
Hooohhh. will be the breeze that shall flutter your dress&lt;br /&gt;
My day beings with your speech your sight&lt;br /&gt;
It shakes my days my nights!&lt;br /&gt;
Whether we part or join together&lt;br /&gt;
Half of my heart will be yours&lt;br /&gt;
Your joy your sorrows is mine&lt;br /&gt;
You&#39;ve become a part of me&lt;br /&gt;
&lt;br /&gt;
Oh! you beauty of a female , in an orchard of golden flowers.&lt;br /&gt;
the humming birds unite mate in love.&lt;br /&gt;
They are playing the flute of love for her aint that the girl&lt;br /&gt;
My beautiful girl , my beautiful girl&lt;br /&gt;
&lt;br /&gt;
The moon in the sky,&lt;br /&gt;
which is vanishing...&lt;br /&gt;
Don&#39;t stay just there&lt;br /&gt;
You gotta come beside me&lt;br /&gt;
One look of your or just a glance&lt;br /&gt;
I will survive with that will start breathing.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/3020646618459311004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/12/song-from-stolen-heart.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/3020646618459311004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/3020646618459311004'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/12/song-from-stolen-heart.html' title='Song from a stolen heart'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-7564244213496555173</id><published>2010-12-08T03:51:00.000-08:00</published><updated>2010-12-08T04:27:15.005-08:00</updated><title type='text'>The Journey till now</title><content type='html'>Date 3rd Dec 2010 Time 2:30 AM Location : 6345&lt;br /&gt;
Now you would be thinking what is this is this time or date ??? was there any tragedy that occurred on that day ???? :-) but no this is time at which I have started&amp;nbsp;writing this blog as I am a half sleepy but I don&#39;t want to sleep&amp;nbsp;so thought crossed my mind to write about some thing and it ended in&amp;nbsp;writing&amp;nbsp;about the&amp;nbsp;journey&amp;nbsp;till&amp;nbsp;now in&amp;nbsp;train number&amp;nbsp;6345 .&lt;br /&gt;
Travelling&amp;nbsp;in train is usual for Mumbaikars , getting pissed off in the Mumbai local train crowd with no space to breath and as the station arrives the commuter becomes a object who moves along with the person trying to get down .One doesn&#39;t have to iron their cloth , just get in the train with a wrinkled cloth and you will get out with a much better iron cloth(still having few wrinkles) without any charge .&lt;br /&gt;
As all things have their good and bad sides , travelling in train also has some good side and the best one is when one has to travel a long distance . I would prefer using train for that for many good reasons , though the time taken is a bit to much in todays world but hey you need to give yourself some time for relaxing , as todays fast world no one gets time for&amp;nbsp;them self .Travelling through train is the best as it slows down the world around&amp;nbsp;&amp;nbsp;you&amp;nbsp;of course&amp;nbsp;after switching off your mobile phones :-) ) .&lt;br /&gt;
In my childhood when I used to go for a long trip it used to take around 3 days to reach the destination , now this has been reduced to 22 hours (Who says India is not progressing?? It is !!! ).It used to be the best time , we used to have our vacation almost a month long and this 3 day journey train used to be our playground .&lt;br /&gt;
I still remember the days when Me and my brother used to go to take a walk in the&amp;nbsp;boogie&amp;nbsp;to check out the other kids in the group so that we can play cricket in the small space that is available between the seats .&lt;br /&gt;
We used to ask our parents to close the doors and start playing ....it was the best time now when I think about it I start laughing.&lt;br /&gt;
When I grew a little older there was a incident where my neighbor was none other than my Hindi teacher , and I was really afraid of her as she looked like a devil .In my class she asked the students to read a lesson para by para and when my turn came I had a bet with by friend sitting beside me that I would make the whole class laugh and he said that it is not possible in the presence of this Mam , when my turn came to stand up and read the paragraph the I read lakdi as ladki . I didn&#39;t realize that I did it and I was continuing to read the rest of the paragraph but when I looked up I saw that the whole class was laughing and Mam was completely red eyed and she was coming towards me with a big stick I wont write the rest of the story but from that moment I was&amp;nbsp;frightened of her .&amp;nbsp;Now when I saw the same Mam travelling with us believe me I just ran from there and through out the trip I was atleast 3-4 blocks away from that place .&lt;br /&gt;
As of now I have a dozen of friends whom I have met in 6345 and still in contact , we make sure that atleast once in a year we meet up .&lt;br /&gt;
The best one happened today while I am&amp;nbsp;writing&amp;nbsp;this blog , a guy came into our boggie as I was the only person who was not asleep this guy came in and asked if he could sit here for few minutes as he is going back towards home and the train will take an hour to reach there . I said that its not a problem he can accompany and relax till the time his stop arrives . After few minutes when he got settled down we started having a conversation as to who he was ??.... as soon as I came to know that he is a Defense guy posted in Siachen I was keen to know how they lived their life out there ?? with firing all the time ?? not sure&amp;nbsp;whether they would be able to see the faces of their family ?? I had many more questions and atleast I didn&#39;t know how the time flied . It was really good one hour that passed by .When his stop arrived as a good citizen I helped him get his luggage and he was really happy to see a helping hand for him...the best part came in when I also got down from the train just to say him good bye he continued to have a conversation and back of the mind I was thinking its almost 4:00 in the morning and he is still having a conversation . His wife , kids , parents wont have slept the night waiting for him as he was coming back home after 2 year.I stopped my thinking and interupted our conversation and asked him to leave for home and there are people waiting for him for more than a year..they are more important &amp;nbsp;at the moment !! While he was leaving he gave me his contact details and told me to contact him and asked me to contact him when ever I go to north ... he owes me !! I happily accepted it and when I came back to my seat I was thinking are there these kind of people still living in this world !!!!!&lt;br /&gt;
&lt;br /&gt;
So travelling in train has been a good for me as I got to meet from lovely persons and make really good friends....I call them as MY GIFTED FRIENDS as in todays where do you meet people and have a&amp;nbsp;conversation when one doesn&#39;t have time for&amp;nbsp;them self&amp;nbsp;.</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/7564244213496555173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/12/journey-till-now.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/7564244213496555173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/7564244213496555173'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/12/journey-till-now.html' title='The Journey till now'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-1415398428836404628</id><published>2010-11-21T23:22:00.000-08:00</published><updated>2010-11-21T23:22:30.732-08:00</updated><title type='text'>Creating OFFLINE Web Application</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;I think that this is the coolest feature of the lot that HTML 5 supports . Recollect the days when you have an important work that needs to be done online like a document that needs to be shared with the client/colleagues in the middle of night and you have no other option in your hand rather than contacting the service provider to have a look into the network problem in your local system , wake up in middle of your sleep and check for the network is up or not and once the network is up send across the document to the client/colleague in a mail.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Times have changed !!!!Now you have an option to update your document that is available online update it even if the network is down , once the network is up your document gets updated online automatically with word to word change that you have made in your document while the network was down .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Thinking how is it possible????We have live example in front of us…Google Online Doc…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The basic idea that goes in building such a application is store the changes made by the user in local memory and once the network is up , update the server with the latest/updated document .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;That’s what HTML5 brings to developers as well as online users table ….isn’t it cool.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;As you read further you will get to know more idea on how this is implemented and what the logic that is put in to implement this.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Basic Concept of Working OFFLINE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The first time that you visit any Offline enabled site the server tells the browser the file that are required to make it available offline , once all the necessary files are downloaded &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;on users local system you can view the site even if you are not connected to internet .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Now comes the technical part&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;There are number of browser supported properties that can be made use of to build an offline web application some of them are explained below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;1)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Does browser support Offline cache&lt;br /&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;applicationCache&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-char-type: symbol; mso-hansi-font-family: Arial; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; This property is available if the browser supports Offline Web applications , this property is available in the global window object , incase of the browser doesn’t support offline web applications this property will be undefined.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;I will start of explaining with the properties that were used for building this demo application at my end.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;As the browser doesn’t know which files are required to build an offline web application so one can create a manifest file that will hold the names of the files that are required by the browser to access the web application offline . You can specify files like Javascript , CSS , HTML , Images in this manifest file .You can link this manifest file to your HTML page in below format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; text-indent: .5in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;lt;html manifest=&quot;cache.manifest&quot;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Now you would be thinking why do we need to do this ???&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Well the answer is all browsers have some kind of caching mechanism in place, but to be honest, they don&#39;t always work. When you open the site on your system after a while(like after rebooting the system,…) and click the Back button in the browser hoping to see the previous page that was opened. However, as you are not connected to the internet and the browser didn&#39;t cache the page properly, you are unable to view that page. You then click the Forward button thinking that at least that page will load, but it doesn&#39;t. You need to reconnect to the internet to be able to view the pages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Until HTML 4, the only work around was that the user has to save each page individually. HTML 5, provides a smarter solution. While building the site, the developer can specify the files that the browser should cache. In fact, on each page, you can specify which documents should be cached. So, even if you refresh the page when you are offline, the page will still load correctly. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Note that the MIME-TYPE of this manifest file should be text/cache-manifest .There are more details that the manifest file contains but I wil take that in next blog as right now we will concentrate on our main course.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; mso-list: l0 level1 lfo1; text-autospace: none; text-indent: -.25in;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;2)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Detecting ONLINE/OFFLINE &lt;br /&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;onLine&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-char-type: symbol; mso-hansi-font-family: Arial; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;à&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; Developer can make use of this JavaScript property to detect the status of connection(ONLINE/OFFLINE) , this property is supported by most of the browsers and it returns TRUE if it is online and FALSE in case it is offline.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Fire Fox also provides online and offline event that the developer can make use of and attach handlers for it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*This function will return true if browser is in ONLINE mode and will &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Return false if it is OFFLINE */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;function checkStatus() &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;{ &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;return navigator.onLine;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;OR&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Using handlers */&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;window.addEventListener(&quot;online&quot;, function(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;.../*action to be performed*/ ….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;});&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;window.addEventListener(&quot;offline&quot;, function() { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;.../*action to be performed*/ ….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;}); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The data storage area that we are going to discuss out here is a simple DOM storage for saving data in offline mode.DOM allows us to store data as string and the data stroed in DOM object can be shared across tabs , between browser sessions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The properties that can be made use of for storing and retrieving data are as below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;sessionStorage&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; : This property can be made us of for storing data for the duration of session . This session lasts as long as the browser is &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;open, opening a new tab or windows causes a new session to be created .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;localStorage&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;: This property can be made use of for storing data for a longer period . The data is not destroyed even when the user closes &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;the browser or turns of the system .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Above property can be made use of in below format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;window.sessionStorage.setItem(“Key”, “Value”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The setters and getters that we get while using the sessionStorage property are as below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;setItem(string key , string value ) …. when data needs to be added or updated&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;getItem(string key)&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;…. when we need to retrieve data from memory&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif;&quot;&gt;removetem(string key)&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;…. when we need to delete any entry from&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif;&quot;&gt;memory&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;clear()&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;…. when we need to clear memory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Before I put an end to this I would like to summarize it &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The most important things that one must remember while developing Offline Web Applications are storing user inputs , creating manifest file , and keep a check on the connection changes .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/1415398428836404628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/11/creating-offline-web-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/1415398428836404628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/1415398428836404628'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/11/creating-offline-web-application.html' title='Creating OFFLINE Web Application'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-5380782486026466238</id><published>2010-10-31T02:04:00.000-07:00</published><updated>2010-10-31T02:04:56.656-07:00</updated><title type='text'>some things are special</title><content type='html'>Because of your beauty, there&#39;s rain in my summers&lt;br /&gt;
because of your dreams, there are waves in my heart&lt;br /&gt;
when you swing your hands as you speak&lt;br /&gt;
there&#39;s a storn in my heart&lt;br /&gt;
&lt;br /&gt;
when love happens, there&#39;s a naughtiness in one&#39;s eyes&lt;br /&gt;
I acted a bit, suffered a bit, and enjoyed the time.&lt;br /&gt;
&lt;br /&gt;
because of your eyes&lt;br /&gt;
my step falters, my eyes wander&lt;br /&gt;
what is this new yearning?&lt;br /&gt;
even if it hurts, the heart wants more&lt;br /&gt;
&lt;br /&gt;
w/o a word, look at me&lt;br /&gt;
let your moments get longer&lt;br /&gt;
without thinking, close your eyes&lt;br /&gt;
let the intimacy continue&lt;br /&gt;
&lt;br /&gt;
In my mornings, I should wake up looking at your face&lt;br /&gt;
In my evenings, I should fall on your lap and end my day</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/5380782486026466238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/some-things-are-special.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5380782486026466238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5380782486026466238'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/some-things-are-special.html' title='some things are special'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-3100879145152028108</id><published>2010-10-30T23:56:00.000-07:00</published><updated>2010-10-30T23:57:52.460-07:00</updated><title type='text'>Socket Direct Protocol</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;SDP is a wire protocol to support stream sockets networking over IB. It utilizes features such as RDMA for high performance data transfers and provides higher performance and lower latency compared to IP encapsulation over IB (IPoIB). A long standing request has been to add implementation-specific support to the JDK to make it easy to use SDP in Java Language applications. As SDP provides a streams sockets interfaces it can be made transparent to applications using java.net.Socket/ServerSocket and of course the stream-oriented SelectableChannels and AsynchronousChannels in the channels package.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;The simple solution in jdk7 uses a configuration file with rules to indicate the endpoints that are connected to the IB fabric for when SDP should be used. When a java.net.Socket or java.nio.channels.SocketChannel binds or connects to an address that is an endpoint on the IB fabric then the socket is converted to use the SDP protocol. The solution can be thought of a kind of built-in interposer library and using an interposer library is an alternative way of doing this.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;There are two types of rules, as follows:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;A &quot;bind&quot; rule indicates that the SDP protocol transport should be used when a TCP socket binds to an address and port that match the rule.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;A &quot;connect&quot; rule indicates that the SDP protocol transport should be used when an unbound TCP socket attempts to connect to an address and port that match the rule.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;A rule has the following form:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;(&quot;bind&quot;|&quot;connect&quot;)1*LWSP-char(hostname|ipaddress)[&quot;/&quot;prefix])1*LWSP-char(&quot;*&quot;|port)[&quot;-&quot;(&quot;*&quot;|port)]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;The first keyword indicates whether the rule is a bind or a connect rule. The next token specifies either a host name or a literal IP address. When you specify a literal IP address, you can also specify a prefix, which indicates an IP address range. The third and final token is a port number or a range of port numbers.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;Consider the following notation in this sample configuration file:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;# Use SDP when binding to 192.168.1.1&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;bind 192.168.1.1 *&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;# Use SDP when connecting to all application services on 192.168.1.*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;connect 192.168.1.0/24 &amp;nbsp; &amp;nbsp; 1024-*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;The first rule in the sample file specifies that SDP is used for any port (*) on the local IP address 192.168.1.1. You would add a bind rule for each local address assigned to an InfiniBand adaptor. (An InfiniBand adaptor is the equivalent of a network interface card (NIC) for InfiniBand.) If you had several IB adaptors, you would use a bind rule for each address that is assigned to those adaptors.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;The second rule in the sample file specifies that whenever connecting to 192.168.1.* and the target port is 1024 or greater, SDP is used. The prefix on the IP address /24 indicates that the first 24 bits of the 32-bit IP address should match the specified address. Each portion of the IP address uses 8 bits, so 24 bits indicates that the IP address should match 192.168.1 and the final byte can be any value. The -* notation on the port token specifies &quot;and above.&quot; A range of ports, such as 1024—2056, would also be valid and would include the end points of the specified range.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;The final rules in the sample file specify a host name (hpccluster), first with the port assigned to an http server (80) and then with the port assigned to a MySQL database (3306). Unlike a literal IP address, a host name can translate into multiple addresses. When you specify a host name, it matches all addresses that the host name is registered to in the name service.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;Once the configuration file is created we simply specify it when running the application,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; eg:&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;$ java -Dcom.sun.sdp.conf=sdp.conf -Djava.net.preferIPv4Stack=true MyApplication&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;Note that this example also sets the java.net.preferIPv4Stack property. The Java Runtime always uses IPv6 sockets if IPv6 is enabled. The Solaris implementation of SDP supports IPv6 addresses but currently doesn&#39;t support IPv4-mapped IPv6 addresses (::ffff:192.168.1.1 for example). For now this means setting the property so that all sockets are IPv4 sockets.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;To test that SDP is enabled, use the sdpadm(1M) command:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;% /usr/sbin/sdpadm status&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;SDP is Enabled&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;Other commands you might find useful are ib(7D), ibd(7D), and sdp(7D).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, lucida, Geneva, Arial, sans-serif;&quot;&gt;You can use the grep command to search the /etc/path_to_inst file for the string &quot;ibd&quot; to view a list of IB adaptors that are supported on your network.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/3100879145152028108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/socket-direct-protocol.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/3100879145152028108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/3100879145152028108'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/socket-direct-protocol.html' title='Socket Direct Protocol'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-5482833897294428965</id><published>2010-10-30T22:57:00.001-07:00</published><updated>2010-10-30T22:57:35.262-07:00</updated><title type='text'>new tune</title><content type='html'>C &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C E &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C &amp;nbsp; E &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp;B &amp;nbsp;B &amp;nbsp;B &amp;nbsp;C&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C &amp;nbsp;C &amp;nbsp;E &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
C &amp;nbsp;C &amp;nbsp;E &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E &amp;nbsp;F &amp;nbsp; D&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;C &amp;nbsp;C &amp;nbsp;E &amp;nbsp;D &amp;nbsp;&lt;br /&gt;
C C &amp;nbsp;E &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B &amp;nbsp;B &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
B &amp;nbsp;C &amp;nbsp;D &amp;nbsp;G &amp;nbsp; G &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F &amp;nbsp;E &amp;nbsp;D&lt;br /&gt;
F &amp;nbsp;G &amp;nbsp; G &amp;nbsp; G &amp;nbsp;G &amp;nbsp; &amp;nbsp; &amp;nbsp; D &amp;nbsp;E &amp;nbsp; F &amp;nbsp; E &amp;nbsp; F&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
E &amp;nbsp; G &amp;nbsp; G &amp;nbsp; G &amp;nbsp; G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D &amp;nbsp; E &amp;nbsp; F &amp;nbsp; E &amp;nbsp;F&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
A &amp;nbsp; C’ &amp;nbsp;B &amp;nbsp;G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G &amp;nbsp; A &amp;nbsp; A &amp;nbsp; F&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
E &amp;nbsp; F &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;G &amp;nbsp;F &amp;nbsp; E &amp;nbsp; D&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
E &amp;nbsp; E &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E &amp;nbsp; F &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G &amp;nbsp; G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
G &amp;nbsp; A &amp;nbsp; G &amp;nbsp; F &amp;nbsp; E&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;D &amp;nbsp;E &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; E &amp;nbsp; E &amp;nbsp; E &amp;nbsp;G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
F &amp;nbsp; E&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;E &amp;nbsp;E &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; G &amp;nbsp; G &amp;nbsp; G &amp;nbsp; G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
C’ &amp;nbsp; B &amp;nbsp; G &amp;nbsp; F&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;E &amp;nbsp; F &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
A &amp;nbsp;G &amp;nbsp; G&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;G &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
B &amp;nbsp; C’ &amp;nbsp;C’ &amp;nbsp;C’ &amp;nbsp; C’ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;G &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
F &amp;nbsp; G&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; B &amp;nbsp; B &amp;nbsp; C’ &amp;nbsp; C’ &amp;nbsp;C’ &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
G &amp;nbsp; A &amp;nbsp; G &amp;nbsp; G&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; G &amp;nbsp; A &amp;nbsp;B &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
F &amp;nbsp;F &amp;nbsp; G &amp;nbsp; A &amp;nbsp; G&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;D &amp;nbsp; D &amp;nbsp; E &amp;nbsp;G &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
F &amp;nbsp; G &amp;nbsp; F &amp;nbsp; G &amp;nbsp; D</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/5482833897294428965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/new-tune.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5482833897294428965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/5482833897294428965'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/new-tune.html' title='new tune'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-454352968738022010</id><published>2010-10-30T22:32:00.000-07:00</published><updated>2010-10-30T22:34:34.953-07:00</updated><title type='text'>Info on 64-bit processors</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;Without a scientific set of benchmarks this one is really hard to measure. Some people think one distribution &quot;feels&quot; faster than another while others disagree. Suffice to say that no one has yet to prove scientifically that the 64-bit versions of Linux available today are significantly faster in performance than their 32-bit counterparts.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;Most &quot;64-bit&quot; versions of software&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;are actually just recompiled versions of the 32-bit code, with no optimization that would take advantage of the new features these chips offer and perhaps boost performance. If you&#39;re looking to use 64-bit because you think it will be a major improvement in speed, I would reconsider.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;Not all software runs on 64-bit Linux. Although there have been 64-bit native Linux distributions for several years (a year before Microsoft Windows XP64, but I digress), the software community has yet to fully embrace the technology. As of the time this post was written, there is no 64-bit version of the Macromedia Flash Plug-in for your web browser, for instance. WINE and the Java VM have been known to cause problems on some 64-bit installations as well. Not all hardware has 64-bit drivers yet. The two major display card manufacturers do have X86_64 versions of their drivers, but they are sadly the exception rather than the norm.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;If you plan on using a machine that has more than 4GB of RAM, you&#39;ll need to use the 64-bit version of your distribution because 32-bit operating systems are only able to handle up to 4GB, maximum&lt;b&gt;*&lt;/b&gt;. There&#39;s just not enough memory addresses for more. This is usually not a problem for desktop&amp;nbsp;users, but it might be a concern for servers or high-end workstations.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;&amp;nbsp;As Apple Computer has proven in recent years, there&#39;s an awful lot people will do just because something looks or feels &quot;cool&quot;. This is perhaps the one reason why some people choose to run 64-bit Linux: it&#39;s a neat idea. To some people the idea of running a 64-bit native&lt;b&gt;**&lt;/b&gt;&amp;nbsp;operating system on their 64-bit CPU is just too cool to pass up. These people understand the drawbacks to running a bleeding-edge system and accept the extra work involved.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;&quot;&gt;Although 64-bit Linux distributions are now by and large on-par with their 32-bit brethren, they do not yet&amp;nbsp;&lt;i&gt;surpass&lt;/i&gt;&amp;nbsp;them in performance. You&#39;re not running at as much of a deficit with 64-bit two years later, but you still don&#39;t quite have an advantage either. Now, I think, rather than strongly suggesting 32-bit I could say either will work, but neither has any significant advantage over the other. It&#39;s more a matter of personal preference.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;Detail info on this can be gathered from ::&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/64-bit&quot;&gt;http://en.wikipedia.org/wiki/64-bit&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/454352968738022010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/without-scientific-set-of-benchmarks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/454352968738022010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/454352968738022010'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/without-scientific-set-of-benchmarks.html' title='Info on 64-bit processors'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7746530518764498796.post-169508626250222176</id><published>2010-10-24T20:29:00.000-07:00</published><updated>2010-10-24T20:33:05.996-07:00</updated><title type='text'>HTLML 5 WEB SOCKETS</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;I have been reading a lot about HTML5 &amp;amp; the features that it brings to the developer table , one of the main area in which I have been digging in is to learn about Web sockets . So I thought of sharing the details that I have got to learn about it . &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;What are Web Sockets ? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;Web Sockets feature that comes with HTML 5 is a new proposal that &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;full-duplex, bi-directional client-server interaction over a single TCP connection. The main goal of this proposal are as below&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[a] Increase in Web Server connection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;[b] Simplifying the AJAX code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Before explaining about the above points I would like to explain about the other applications that support this functionality but in a much trickier way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;The other applications that I have came to know is COMET which in practice in most often implemented through AJAX and long polling. COMET makes use of&amp;nbsp; technique of server push using standard browser functionality. With LONG POLLING, the client requests information from the server in a similar way to a normal poll. However, if the server does not have any information available for the client, instead of sending an empty response, the server holds the request and waits for some information to be available. Once the information becomes available (or after a suitable timeout), a complete response is sent to the client.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;The above information tough provided won’t be sufficient enough for explaining about the LONG POLLING &amp;amp; COMET one can refer the links to get more idea on the same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;LONG POLLING :: &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Push_technology&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;http://en.wikipedia.org/wiki/Push_technology&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Now the techniques that is mentioned above are a kind of hacks as it makes use of AJAX , pooling as this would mean multiple AJAX request being send from the client to the server &amp;amp; keeping that connection open by using long pooling technique to get real time data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Web Socket supports a much simpler interface that enables client and the server sends messages to each other in a much simpler way.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;Google’s Chrome browser already provides WebSockets and developers can expect to see the technology in other browsers in 2010&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial, sans-serif;&quot;&gt;A&amp;nbsp; simple way to check whether the browser supports Web Socket is by using the below code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;if(&quot;WebSocket&quot; in window)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;HTML5 web socket example&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;br /&gt;
Step 1: Create a WebSocket with a valid URL&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;Creating a new websocket connection to a web socket server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;var newWebSocket = new WebSocket(&quot;ws://abc.xyz.com&quot;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;ws:// &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Wingdings; font-size: 11pt;&quot;&gt;è&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt; web socket connection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;wss:// &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Wingdings; font-size: 11pt;&quot;&gt;è&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt; secured web socket connection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;Default port for &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;WebSockets &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Wingdings; font-size: 11pt;&quot;&gt;è&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt; 81 &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;secure WebSocket &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Wingdings; font-size: 11pt;&quot;&gt;è&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt; 815.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;Now comes the times to attaché few callback functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;newWebSocket.onopen = function(evt) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;alert(&quot;Connection open...&quot;);&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;br /&gt;
};&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;br /&gt;
newWebSocket.onmessage = function(evt) {&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;br /&gt;
alert( &quot;Updated data : &quot; + evt.data);&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;br /&gt;
};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;newWebSocket.onclose = function(evt) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;alert(&quot;Connection closed.&quot;);&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;br /&gt;
};&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;Step 3: Send and Receive Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;To send a message to the server, simply call the postMessage method on the webocket with the content you wish to send to the server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;stockTickerWebSocket.postMessage(&quot;hi there&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Aerial, serif; font-size: 11pt;&quot;&gt;″&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;This will send the message to the server. Any message coming from the server will be delivered to the onmessage callback registered above&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;When completed, call the disconnect() method to close the WebSocket connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;newWebSocket.disconnect();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;As demonstrated in the example above, there are no HTTP requests made to the server from the client side to retrieve data, instead the data was pushed to the client from the server - when it becomes available.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;When a new WebSocket connection is established the browser opens an HTTP connection to the server first and then negotiates with the server to upgrade the connection to a dedicated and persistent WebSocket connection. This process automatically sets up a tunnel through to the server&amp;nbsp; passing through all network agents (proxies, routers, and firewalls) in the middle (very much like HTTPS establishing a secure, endtoend connection), solving numerous issues that the various Comet programming techniques encountered.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;So this is it , &amp;nbsp;a very basic understanding for the Web Sockets feature that HTML 5 provides will be posting more updates on this and the other features in the near future.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif; font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sajeev4u.blogspot.com/feeds/169508626250222176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/htlml-5-web-sockets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/169508626250222176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7746530518764498796/posts/default/169508626250222176'/><link rel='alternate' type='text/html' href='http://sajeev4u.blogspot.com/2010/10/htlml-5-web-sockets.html' title='HTLML 5 WEB SOCKETS'/><author><name>$@j€€\/</name><uri>http://www.blogger.com/profile/05610286382964623636</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcIYvKDNzok8dhzCDycubFV2SxfTJgkgAF-1d7ieBpEcHpZpiWqUKEHG7eZBJCTO6e_UmvViWdQZKcCnsj3BCHDsihJS6dblyz9Co9bK-Ck3NYzZpAGZ_ovNKMgjiqvMA/s220/DSC_0518.jpg'/></author><thr:total>0</thr:total></entry></feed>