<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oleg Puzanov &#187; comet</title>
	<atom:link href="http://olegpuzanov.com/tag/comet/feed/" rel="self" type="application/rss+xml" />
	<link>http://olegpuzanov.com</link>
	<description>professional web developer blog</description>
	<lastBuildDate>Sun, 22 Jan 2012 23:14:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hello Comet: Part 1</title>
		<link>http://olegpuzanov.com/2010/03/14/hello-comet-part-1/</link>
		<comments>http://olegpuzanov.com/2010/03/14/hello-comet-part-1/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 22:51:29 +0000</pubDate>
		<dc:creator>Oleg Puzanov</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[comet]]></category>
		<category><![CDATA[lightstreamer]]></category>

		<guid isPermaLink="false">http://puzanov.info/?p=37</guid>
		<description><![CDATA[Comet is a web application model that enables web servers to send data to the client without having to explicitly request it. Comet is an umbrella term for multiple techniques for achieving this interaction. All these methods rely on features included by default in browsers, such as JavaScript. This approach allows developers create event-driven web [...]]]></description>
			<content:encoded><![CDATA[<p><span class="drop">C</span>omet is a web application model that enables web servers to send data to the client without having to explicitly request it. Comet is an umbrella term for multiple techniques for achieving this interaction. All these methods rely on features included by default in browsers, such as JavaScript. This approach allows developers create event-driven web applications without any non-default browser plugins.</p>
<p>In practice, Comet applications typically use Ajax with long polling to detect new information on the server. This concept is also known as Ajax Push, Reverse Ajax, HTTP streaming, etc.</p>
<p>In this article we will use <a href="http://www.lightstreamer.com/">Lightstreamer</a> &#8211; web server for pushing live data to Rich Internet Applications. Lightstreamer can stream real-time data to any client – simple HTML form, Flash/Flex/Silverlight or even iPhone application. In first part of the article, we will setup and configure Lightstreamer for our demo. We will use Lightstream Moderato Free Edition which is quite adequate for our test application.</p>
<p><span id="more-37"></span></p>
<p>I installed Lightstream server under Ubuntu 8.04 LTS Server edition. Windows distribution is also available.</p>
<ol>
<li>First, <a href="http://www.lightstreamer.com/downloadfree.htm">download Free version</a> from Lightstreamer website  (registration required).</li>
<li>Make sure you have a JDK installed on your system. To install JDK for Ubuntu just type in console 
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk</div></div>
</li>
<li>Extract the archive
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar xvfz Lightstreamer_Moderato.tar.gz</div></div>
</li>
<li>In order to use Lightstreamer Moderato Edition, you need a valid Free License. To get your license fill out <a href="http://www.lightstreamer.com/vb/ls_free_request.php">the following form</a> (you&#8217;ll be asked to provide your machine MAC address). Shortly, you will receive an email with your ClientID and license file attached. Copy your license file to Lightstreamer/conf directory.</li>
<li>Now you need to configure your license. Open &#8220;lightstreamer_conf.xml&#8221; file, located under the Lightstreamer/conf directory. Place your ClientID in the &lt;client_id&gt; element and the name of your license file in the &lt;license_path&gt; element. By default installation uses TCP ports 8080, 9999 and 6666. If any of these ports are already in use on your system, change them by editing the following elements: &lt;port&gt;, &lt;jmxmp_connector_port&gt; and &lt;html_adaptor_port&gt;</li>
<li>Open Lightstreamer/bin/unix-like/LS.sh and set LS_HOME and JAVA_HOME according to your environment.</li>
<li>Launch the server. Go to the Lightstreamer/bin/unix-like/ and execute
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sh start.sh</div></div>
</li>
</ol>
<p>Now, you can point your browser to http://localhost:8080. You should see a welcome page containing the links to some pre-installed demos.</p>
<p>In next part of the article we will create very basic application to try Lightstreamer in action.</p>
]]></content:encoded>
			<wfw:commentRss>http://olegpuzanov.com/2010/03/14/hello-comet-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

