<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Straight from the Heart</title>
	<atom:link href="http://simplymanu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplymanu.wordpress.com</link>
	<description>Some Ineffable, Perplex, Untouched thoughts......</description>
	<lastBuildDate>Sun, 08 Feb 2009 10:55:37 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='simplymanu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/614c0c844e63a4824893d797b101ade3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Straight from the Heart</title>
		<link>http://simplymanu.wordpress.com</link>
	</image>
			<item>
		<title>फिरदोस&#8230;.</title>
		<link>http://simplymanu.wordpress.com/2009/02/08/firdos/</link>
		<comments>http://simplymanu.wordpress.com/2009/02/08/firdos/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 10:36:29 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Poetry]]></category>
		<category><![CDATA[triveni]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=206</guid>
		<description><![CDATA[उनकी मु्स्कराहट, हमारे मासूम नतीजे,
थी जन्नत की चाहत, मिले दोजख के छींटे &#124;
और लोग कहते खुदगर्जी इसे, खुदा देखता है&#8230;&#8230;
 
गर ना हम होते शायर, तो अच्छा था,
दास्तान-ऐ-आशिकी तो न यूँ बयाँ करते &#124;
छुपाने से जो चुप जाए वो मोहब्बत क्या है&#8230;&#8230;&#8230;&#8230;
मनु
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=206&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="color:#ff6600;">उनकी मु्स्कराहट, हमारे मासूम नतीजे,</span><span style="color:#0000ff;"><br />
<span style="color:#ff6600;">थी जन्नत की चाहत, मिले दोजख के छींटे |</span></span></p>
<p><span style="color:#ff6600;">और लोग कहते खुदगर्जी इसे, खुदा देखता है&#8230;&#8230;</span></p>
<p> </p>
<p><span style="color:#339966;">गर ना हम होते शायर, तो अच्छा था,</span></p>
<p><span style="color:#339966;">दास्तान-ऐ-आशिकी तो न यूँ बयाँ करते |</span></p>
<p><span style="color:#339966;">छुपाने से जो चुप जाए वो मोहब्बत क्या है&#8230;&#8230;&#8230;&#8230;</span></p>
<p><span style="color:#0000ff;"><span style="color:#ff0000;">मनु</span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=206&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2009/02/08/firdos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
		<item>
		<title>जल्द ही आएगा वो दिन&#8230;</title>
		<link>http://simplymanu.wordpress.com/2009/02/07/%e0%a4%9c%e0%a4%b2%e0%a5%8d%e0%a4%a6-%e0%a4%b9%e0%a5%80-%e0%a4%86%e0%a4%8f%e0%a4%97%e0%a4%be-%e0%a4%b5%e0%a5%8b-%e0%a4%a6%e0%a4%bf%e0%a4%a8/</link>
		<comments>http://simplymanu.wordpress.com/2009/02/07/%e0%a4%9c%e0%a4%b2%e0%a5%8d%e0%a4%a6-%e0%a4%b9%e0%a5%80-%e0%a4%86%e0%a4%8f%e0%a4%97%e0%a4%be-%e0%a4%b5%e0%a5%8b-%e0%a4%a6%e0%a4%bf%e0%a4%a8/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 13:15:07 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=265</guid>
		<description><![CDATA[जल्द ही आएगा वो दिन, 
बैठेंगे साथ हम दोनों&#8230;.. 
कुछ तुम अपनी सुनाना,
कुछ में अपनी बताऊंगा &#8230;. 
आखों में होगी सिर्फ़ तुम, 
और में जागते हुए सपने सजाऊंगा.. 
हाथों में तब दे देना हाथ तुम अपना, 
और तुम्हारी खुशबू से में मन को भीगाउंगा &#8230;. 
खामोश रह कर भी कह दूंगा सब, 
जो कह न पाया [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=265&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="color:#333399;">जल्द ही आएगा वो दिन, </span></p>
<p><span style="color:#333399;">बैठेंगे साथ हम दोनों&#8230;.. </span></p>
<p><span style="color:#333399;">कुछ तुम अपनी सुनाना,</span></p>
<p><span style="color:#333399;">कुछ में अपनी बताऊंगा &#8230;. </span></p>
<p><span style="color:#333399;">आखों में होगी सिर्फ़ तुम, </span></p>
<p><span style="color:#333399;">और में जागते हुए सपने सजाऊंगा.. </span></p>
<p><span style="color:#333399;">हाथों में तब दे देना हाथ तुम अपना, </span></p>
<p><span style="color:#333399;">और तुम्हारी खुशबू से में मन को भीगाउंगा &#8230;. </span></p>
<p><span style="color:#333399;">खामोश रह कर भी कह दूंगा सब, </span></p>
<p><span style="color:#333399;">जो कह न पाया हूँ अब तक, वह बानगी सुनाऊंगा &#8230; </span></p>
<p><span style="color:#333399;">कभी हो जो जाओगी नाराज तुम, </span></p>
<p><span style="color:#333399;">लगा कर अपने सीने से दिल की धड़कन सुनाऊंगा .. </span></p>
<p><span style="color:#333399;">तुम्हारी मुश्कराहट की बदली में ,</span></p>
<p><span style="color:#333399;">आस की बारिश बुलाउंगा&#8230; </span></p>
<p><span style="color:#333399;">बस तुम रहना सदा पास मेरे, </span></p>
<p><span style="color:#333399;">धुप, छाव, बारिश सब सह जाऊंगा&#8230; </span></p>
<p><span style="color:#333399;">जल्द ही आएगा वो दिन,</span></p>
<p><span style="color:#333399;">बैठेंगे साथ हम दोनों&#8230;..</span></p>
<p><span style="color:#333399;">कुछ तुम अपनी सुनाना, </span></p>
<p><span style="color:#333399;">कुछ में अपनी बताऊंगा &#8230;.</span></p>
<p><span style="color:#ff0000;"> मनु</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=265&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2009/02/07/%e0%a4%9c%e0%a4%b2%e0%a5%8d%e0%a4%a6-%e0%a4%b9%e0%a5%80-%e0%a4%86%e0%a4%8f%e0%a4%97%e0%a4%be-%e0%a4%b5%e0%a5%8b-%e0%a4%a6%e0%a4%bf%e0%a4%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
		<item>
		<title>A Letter to someone special&#8230;..</title>
		<link>http://simplymanu.wordpress.com/2009/01/03/letter-to-someone-special/</link>
		<comments>http://simplymanu.wordpress.com/2009/01/03/letter-to-someone-special/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 10:45:44 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[My Life]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=257</guid>
		<description><![CDATA[Dear Gappu&#8230;
 
This life has never looked as good as it&#8217;s today…… and I&#8217;ve never been as happy as I am with you &#8230;Donno, if it is because of the warmness of you Love or because of some good deeds executed by me; Today… I have you as a soul mate and love of my life. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=257&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Dear Gappu&#8230;</span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">This life has <strong>never</strong> looked as good as it&#8217;s today…… and I&#8217;ve <strong><span style="font-family:Verdana;">never</span></strong> been as <strong><span style="font-family:Verdana;">happy as I am</span></strong> with you &#8230;Donno, if it is because of the warmness of you Love or because of some good deeds executed by me; Today… I have you as a soul mate and love of my life. </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Inadvertently or purposefully…..if you are nice with someone, that altruistic act of yours get save as positive credits in your account….in the account of verve…I believe in this philosophy&#8230;…may be because of my affinity with mathematics…I do so. </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">And when we have lot of positive credits in our account; Almighty fulfill our wishes, sometimes these wishes are latent, and we are unaware of, what we need…..as we always know what we want.</span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Your presence in my life is the result of such a dormant wish. I am an ordinary guy, who behaves indifferently sometimes, but somewhere close to my heart, I always have a warm feeling for you. Sometimes I reveal…..sometimes not.</span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Just want to tell you…You are<strong><span style="font-family:Verdana;"> Special</span></strong> to me.</span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Wish you all the good things of the world and a great year ahead. </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Love you…</span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;">Yours,<br />
 Manu&#8230;&#8230;.</span></p>
<p style="margin:0;"><span style="font-size:10pt;color:navy;font-family:Verdana;"> </span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=257&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2009/01/03/letter-to-someone-special/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
		<item>
		<title>They call it crap&#8230;</title>
		<link>http://simplymanu.wordpress.com/2008/12/16/they-call-it-crap/</link>
		<comments>http://simplymanu.wordpress.com/2008/12/16/they-call-it-crap/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 11:12:34 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=245</guid>
		<description><![CDATA[Our life is a one way track as you move ahead. You will encounter some mile stones; you will notice some &#38; some get unnoticed but whatever has passed….no point to anticipate the same. They won&#8217;t come in your path as the same way they came. So enjoy the journey as you never know….when this road will get block forever&#8230;
Manu
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=245&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-size:10pt;color:black;font-family:Verdana;">Our life is a one way track as you move ahead. You will encounter some mile stones; you will notice some &amp; some get unnoticed but whatever has passed….no point to anticipate the same. They won&#8217;t come in your path as the same way they came. So enjoy the journey as you never know….when this road will get block forever&#8230;</span></p>
<p><span style="font-size:10pt;color:black;font-family:Verdana;">Manu</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/245/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/245/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/245/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=245&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/12/16/they-call-it-crap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
		<item>
		<title>Dirty Pretty Things (2002)</title>
		<link>http://simplymanu.wordpress.com/2008/11/06/dirty-pretty-things-2002/</link>
		<comments>http://simplymanu.wordpress.com/2008/11/06/dirty-pretty-things-2002/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 20:18:04 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Movie Maja]]></category>
		<category><![CDATA[Movie]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=235</guid>
		<description><![CDATA[ 
         
          Some things are too dangerous to keep secret; true indeed. After a significant hiatus; I watched an aesthetically nice piece of celluloid- Dirty Pretty Things. The story revolves around the two illegal immigrants in the city of London.  Director Stephen Frears has been pretty successful in his artistic attempt by sketching a sensitive movie plot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=235&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"> <a href="http://simplymanu.files.wordpress.com/2008/11/dirty_pretty_things.jpg"><img class="aligncenter size-full wp-image-236" title="dirty_pretty_things" src="http://simplymanu.files.wordpress.com/2008/11/dirty_pretty_things.jpg?w=280&#038;h=369" alt="dirty_pretty_things" width="280" height="369" /></a></span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span></span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>          </span>Some things are too dangerous to keep secret; true indeed. After a significant hiatus; I watched an aesthetically nice piece of celluloid- Dirty Pretty Things. The story revolves around the two illegal immigrants in the city of London.<span>  </span>Director Stephen Frears has been pretty successful in his artistic attempt by sketching a sensitive movie plot with ingenuous portrayal of illegal immigrant’s life; their daily struggle, aspirations, exploitation and emotions are beautifully crafted by the different sequences. The main lead Okwe is an illegal Nigerian immigrant, and wanted by the Nigerian police in the charge of his wife’s murder. He came to London in the search of mental solace as he somewhere perceive himself a reason behind his wife’s death. In London, he met Senay Gelik (Audrey Tautou), a beautiful Turkish girl in her early twenties as she provides him shelter. Movie moves forward as Okwe discovers the ghastly side of London life. Chiwetel Ejiofor in the main lead as Okwe has done a great job as most of the times his eyes reflects the anguish beats of his wavy life. His acting skills are superb and dialog delivery is commendable. Audrey looks tempting through out the movie and his ingenious French accent provides a clear profundity to her character. In some of the scenes; she is too good as she has got diverse chances to show the true color of love, hate, damage, ecstasy and agony. Film was nominated for 2004 academy awards in the best writing/ screen play category; beside that this movie won many accolades. An honest attempt in the meadow of meaningful cinema, must watch.</span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span></span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>** The picture is taken from the web.</span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=235&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/11/06/dirty-pretty-things-2002/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>

		<media:content url="http://simplymanu.files.wordpress.com/2008/11/dirty_pretty_things.jpg" medium="image">
			<media:title type="html">dirty_pretty_things</media:title>
		</media:content>
	</item>
		<item>
		<title>Some bits and pieces related to java Serialization</title>
		<link>http://simplymanu.wordpress.com/2008/10/23/some-bits-and-pieces-related-to-java-serialization/</link>
		<comments>http://simplymanu.wordpress.com/2008/10/23/some-bits-and-pieces-related-to-java-serialization/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 11:56:44 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=217</guid>
		<description><![CDATA[One of the interesting concepts of the java is Serialization. We all know in java we can create reusable objects in the memory as long as the JVM is in the running state. Serialization provides the flexibility of object persistence beyond JVM lifecycle. 
 
In the short serialization is the process of saving state of an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=217&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">One of the interesting concepts of the java is Serialization. We all know in java we can create reusable objects in the memory as long as the JVM is in the running state. Serialization provides the flexibility of object persistence beyond JVM lifecycle. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">In the short serialization is the process of saving state of an object in a file. For that purpose, that object should implement the Serializable interface; same we are doing in the class Sedan.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">A simple example of serialization is as follows-</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">class</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Sedan </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">implements</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Serializable{</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=44000.0;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Sedan(</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> <span style="background:silver;">pric</span>e){</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=price;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> getPrice() {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">return</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> setPrice(</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> price) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;"> = price;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">class</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> SerializeSedan {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">static</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> main(String[] args) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span><span style="background:silver;">Sedan</span> sedanObject= </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">new</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> <span style="background:silver;">Sedan</span>(55000.0);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>FileOutputStream outputStream;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">try</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>System.</span><em><span style="font-size:10pt;color:#0000c0;font-family:&quot;">out</span></em><span style="font-size:10pt;color:#000000;font-family:&quot;">.println(sedanObject.getPrice());</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>outputStream = </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">new</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> FileOutputStream(</span><span style="font-size:10pt;color:#2a00ff;font-family:&quot;">&#8220;myTestFile.ser&#8221;</span><span style="font-size:10pt;color:#000000;font-family:&quot;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>ObjectOutputStream obystr= </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">new</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> ObjectOutputStream(outputStream);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>obystr.writeObject(sedanObject);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>obystr.close();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>FileInputStream in= </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">new</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> FileInputStream(</span><span style="font-size:10pt;color:#2a00ff;font-family:&quot;">&#8220;myTestFile.ser&#8221;</span><span style="font-size:10pt;color:#000000;font-family:&quot;">);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>ObjectInputStream objin= </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">new</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> ObjectInputStream(in);</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">try</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                        </span>sedanObject=(<span style="background:silver;">Sedan</span>)objin.readObject();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                        </span>System.</span><em><span style="font-size:10pt;color:#0000c0;font-family:&quot;">out</span></em><span style="font-size:10pt;color:#000000;font-family:&quot;">.println(sedanObject.getPrice());</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>} </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">catch</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> (ClassNotFoundException e) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                        </span>e.printStackTrace();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>objin.close();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>} </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">catch</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> (FileNotFoundException e) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>e.printStackTrace();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>}</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">catch</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> (IOException exp) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>exp.printStackTrace();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Run the SerializeSedan Class. The output will be-</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:Verdana;">Before- 55000.0</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:Verdana;">After- 55000.0</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">Now change the Sedan a bit.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">class</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Sedan </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">extends</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> <span style="background:silver;">Car</span> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">implements</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Serializable {</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;"> private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=44000.0;</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Gearbox </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">null</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Sedan(</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> price, Gearbox <span style="background:silver;">gearbox</span>){</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=price;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=gearbox;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> getPrice() {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">return</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> setPrice(</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> price) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;"> = price;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Gearbox getGearbox() {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">return</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> setGearbox(Gearbox gearbox) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;"> = gearbox;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">class</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Car </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">implements</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Serializable{</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">int</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;background:silver;color:#0000c0;font-family:&quot;">yearModel</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=2005;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">int</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> getModelyear() {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">return</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;background:silver;color:#0000c0;font-family:&quot;">yearModel</span><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> setModelyear(</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">int</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> modelyear) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;background:silver;color:#0000c0;font-family:&quot;">yearModel</span><span style="font-size:10pt;color:#000000;font-family:&quot;"> = modelyear;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">class</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Gearbox {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">int</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearCaseNumber</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=0;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">int</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> getGearCaseNumber() {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">return</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearCaseNumber</span><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> setGearCaseNumber(</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">int</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> gearCaseNumber) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">this</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">.</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearCaseNumber</span><span style="font-size:10pt;color:#000000;font-family:&quot;"> = gearCaseNumber;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;">}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">Now we have an instance variable of type Gearbox, now for serialization of Sedan object, Gearbox should also implement Serializable interface.</span></p>
<p class="para" style="margin:auto 0;"><span style="font-size:10pt;font-family:Verdana;">And what if the Gearbox itself had references to other objects? This gets fairly complex. If it were up to the programmer to know the internal structure of each object the Sedan referred to, so that the programmer could be sure to save all the state of all those objects<span class="unicode">…</span>…..Which is <strong>really</strong> difficult to achieve. The good thing about java is </span><span style="font-size:10pt;color:#000000;font-family:Verdana;">– java Serialization mechanism internally take care of the whole object graph. In the case, we are unaware of the structure of Gearbox class or Gearbox is not implementing Serializable interface and we are not able to the change code also. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">We can create a sub class of Gearbox, which eventually implement Serializable interface and what if Gearbox is final class.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">Here transient modifier comes in picture. Transient is used to skip an instance variable during serialization.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">public</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">class</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Sedan </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">implements</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Serializable{</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">double</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">price</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=44000.0;</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">transient</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Gearbox </span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;">=</span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">null</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;">;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">Now during serialization, variable gearbox will be skipped. <span> </span>We are skipping the gearbox variable so we can not read the </span><span style="font-size:10pt;color:#0000c0;font-family:Verdana;">gearCaseNumber</span><span style="font-size:10pt;color:#000000;font-family:Verdana;"> while reading the state of the object as it will throw a null pointer error while getting Gearbox object.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">Java provides solution for that problem also, for that some change requires in the Sedan class.<span>  </span>Add these two methods in Sedan class and these methods will solve the purpose.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> writeObject(ObjectOutputStream os) </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span>{<span>                           </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">try</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>os.defaultWriteObject();<span>                          </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>os.writeInt(</span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;">.getGearCaseNumber());<span>            </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>} </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">catch</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> (Exception e) { e.printStackTrace(); }</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">private</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">void</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> readObject(ObjectInputStream is) {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span></span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">try</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> {</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>is.defaultReadObject();<span>        </span><span>                    </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span></span><span style="font-size:10pt;color:#0000c0;font-family:&quot;">gearbox</span><span style="font-size:10pt;color:#000000;font-family:&quot;"> = </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">new</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> Gearbox(is.readInt());<span>              </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>} </span><strong><span style="font-size:10pt;color:#7f0055;font-family:&quot;">catch</span></strong><span style="font-size:10pt;color:#000000;font-family:&quot;"> (Exception e) { </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>                  </span>e.printStackTrace();</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>            </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#000000;font-family:&quot;"><span>      </span>}</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Now output is-</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:&quot;">68686After- 55000.0</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:#0000ff;font-family:&quot;">68686After- 55000.0</span></p>
<p class="first-para" style="margin:auto 0;"><span style="font-size:10pt;font-family:Verdana;">Here, when you invoke <span class="fixed">defaultWriteobject()</span> from within <span class="fixed">writeObject()</span> you&#8217;re telling the JVM to do the normal serialization process for this object. When implementing <span class="fixed">writeObject()</span>, you will typically request the normal serialization process, <span>and</span> do some custom writing and reading too. Please read <a href="http://java.sun.com/javase/6/docs/api/">sun java doc</a> for the clear understanding of methods related to ObjectOutputStream class.</span></p>
<p class="first-para" style="margin:auto 0;"><span style="font-size:10pt;font-family:Verdana;">This was just an introduction of the Serialization, Lots more to follow. Hope it helps.</span></p>
<p class="first-para" style="margin:auto 0;"><span style="font-size:10pt;font-family:Verdana;">Cheers,</span></p>
<p class="first-para" style="margin:auto 0;"><span style="font-size:10pt;font-family:Verdana;">Manu</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=217&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/10/23/some-bits-and-pieces-related-to-java-serialization/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
		<item>
		<title>Love&#8230;.</title>
		<link>http://simplymanu.wordpress.com/2008/09/21/love/</link>
		<comments>http://simplymanu.wordpress.com/2008/09/21/love/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 10:44:21 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Food for thought]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Confound Crap]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=196</guid>
		<description><![CDATA[I read a post on this lovely creation of almighty. 
.
Whatever the situation is, but the wondrous feeling of being in love is great, I feel strongly that everybody should fall in love at least once in a life time. Obviously we all are in love with our parents, siblings, our beloved things but to fall in love with a person [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=196&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div><span style="font-size:10pt;color:#000000;font-family:Verdana;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">I read a <a href="http://rohittripathi.blogspot.com/2008/09/i-dont-want-to-love-you-but-i-do.html" target="_blank">post</a> on this lovely creation of almighty. </span></span></div>
<div>.</div>
<div><span style="font-size:10pt;color:#000000;font-family:Verdana;"><span style="font-size:10pt;color:#000000;font-family:Verdana;">Whatever the situation is, but the wondrous feeling of being in love is great, I feel strongly that everybody should fall in love at least once in a life time. Obviously we all are in love with our parents, siblings, our beloved things but to fall in love with a person you don’t have any prior association, truly ineffable. There is also a vital difference; generally we do love things because of the qualities they encompass or some genial association, but here situation is contradictory we love first without giving attention to acquisitive or non-materialistic qualities and sans any affable link and then comes in picture the penchant towards the persona of that individual, which is selfless, truly altruistic. Oceans of ink have been spilled in hopes of defining love in all its many facades but this voyage is eternal. In love, destination is not the key as joy is in the journey. </span></span></div>
<div></div>
<p><span style="font-size:10pt;color:#000000;font-family:Verdana;"></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;"><span style="font-family:Times New Roman;"> </span></span></p>
<div><span style="color:#000000;font-family:Verdana;"> </span></div>
<div><span style="color:#000000;font-family:Verdana;"> </span></div>
<div><span style="color:#000000;font-family:Verdana;"> </span></div>
<p><span style="color:#000000;font-family:Verdana;"> </p>
<p></span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=196&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/09/21/love/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse Trader- An Open Source RCP Project</title>
		<link>http://simplymanu.wordpress.com/2008/09/16/eclipse-trader-an-open-source-rcp-project/</link>
		<comments>http://simplymanu.wordpress.com/2008/09/16/eclipse-trader-an-open-source-rcp-project/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 15:01:12 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=185</guid>
		<description><![CDATA[Today, I was going through a cool open source trading project– Eclipse Trader. It is a RCP (Rich Client platform) and developed using eclipse technologies mainly SWT, JFace etc.
 
PRO&#8217;s and CON&#8217;s-
 
The good thing about the application is you can define your own data feed say MSN-Money and it will populate all the charts, news and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=185&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Today, I was going through a cool open source trading project– <a href="http://eclipsetrader.sourceforge.net/" target="_blank">Eclipse Trader</a>. It is a RCP (Rich Client platform) and developed using eclipse technologies mainly SWT, JFace etc.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">PRO&#8217;s and CON&#8217;s-</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">The good thing about the application is you can define your own data feed say MSN-Money and it will populate all the charts, news and data information fetched from the MSN-Money. By default they are providing yahoo-money, open-tick feed implementation. The UI is really cool and user friendly with proper help feature.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">This application is in the beginning state you can encounter some issues but due to its functional flexibility, it is one of its kinds in the market.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Now comes, the problem with the application. For non coders and non eclipse guys, it’s not an easy choice as creation and implementation of new feed need knowledge of java and eclipse plug-in framework. Although application comes with few implementation examples but still it need some effort. I feel in future they can provide some UI drag and drop or API sort of thing which make this task easy.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Technology-</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Each building block of trading application, say Feed is provided as an extension point. So developer can write their own extensions to these extension points. The application emphasizes on the flexibility of customization.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Features- </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">Full fledge trading application features are given with this application. Like</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">You can create Security, Account, Transactions, Trading orders, Stock watch list, Security History, Charts for graphical analysis of Securities. Beside that portfolio view, pattern view, news views are like icing on the cake.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">For more info, please refer-</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Arial;"><a href="http://eclipsetrader.sourceforge.net/" target="_blank"><span style="font-size:small;color:#800080;">http://eclipsetrader.sourceforge.net/</span></a></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p style="text-align:center;">
<div></div>
<p><span style="font-family:Arial;"></p>
<div class="mceTemp">
<div id="attachment_187" class="wp-caption aligncenter" style="width: 520px"><a href="http://simplymanu.files.wordpress.com/2008/09/screenshot_et_1.jpg"><img class="size-large wp-image-187 " title="screenshot_et_1" src="http://simplymanu.files.wordpress.com/2008/09/screenshot_et_1.jpg?w=510&#038;h=380" alt="Charts" width="510" height="380" /></a><p class="wp-caption-text">Charts</p></div>
</div>
<p> </p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 520px"><a href="http://simplymanu.files.wordpress.com/2008/09/screenshot_et_21.jpg"><img class="size-large wp-image-192" title="screenshot_et_21" src="http://simplymanu.files.wordpress.com/2008/09/screenshot_et_21.jpg?w=510&#038;h=380" alt="Main View" width="510" height="380" /></a><p class="wp-caption-text">Main View</p></div>
<div><span style="font-family:Arial;"> </span></div>
<div><span style="font-family:Arial;"> </span></div>
<p><span style="font-family:Arial;"> </p>
<p></span></span> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/simplymanu.wordpress.com/185/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/simplymanu.wordpress.com/185/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=185&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/09/16/eclipse-trader-an-open-source-rcp-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>

		<media:content url="http://simplymanu.files.wordpress.com/2008/09/screenshot_et_1.jpg?w=510" medium="image">
			<media:title type="html">screenshot_et_1</media:title>
		</media:content>

		<media:content url="http://simplymanu.files.wordpress.com/2008/09/screenshot_et_21.jpg?w=510" medium="image">
			<media:title type="html">screenshot_et_21</media:title>
		</media:content>
	</item>
		<item>
		<title>कुछ लम्हें त्रिवेणी के साथ&#8230;&#8230;&#8230;</title>
		<link>http://simplymanu.wordpress.com/2008/07/28/%e0%a4%ae%e0%a5%88%e0%a4%82-%e0%a4%94%e0%a4%b0-%e0%a4%ae%e0%a5%87%e0%a4%b0%e0%a5%80-%e0%a4%a4%e0%a5%8d%e0%a4%b0%e0%a4%bf%e0%a4%b5%e0%a5%87%e0%a4%a3%e0%a5%80%e0%a4%af%e0%a4%be%e0%a4%81/</link>
		<comments>http://simplymanu.wordpress.com/2008/07/28/%e0%a4%ae%e0%a5%88%e0%a4%82-%e0%a4%94%e0%a4%b0-%e0%a4%ae%e0%a5%87%e0%a4%b0%e0%a5%80-%e0%a4%a4%e0%a5%8d%e0%a4%b0%e0%a4%bf%e0%a4%b5%e0%a5%87%e0%a4%a3%e0%a5%80%e0%a4%af%e0%a4%be%e0%a4%81/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 20:52:26 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Poetry]]></category>
		<category><![CDATA[triveni]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=146</guid>
		<description><![CDATA[


कुछ लम्हें त्रिवेणी के साथ&#8230;&#8230;&#8230;
 
समेटी है आज कुछ बिख्ररी यादों की कतरने,
कुछ मीठे सपनो की रातें, मु्स्कराहटों का कोना &#124;
शब की दहलीज पर ढूढां करता हूं, रोशनी मैं&#8230;..
 
 

दिल की दीवारों का भी है अजब आलम,
परतें उखड़ती हैं पर रंग उतरता ही नही &#124;
इस घर के दरवाजे पर ताला जो लगा है&#8230;&#8230;.
 
 


मीठी सुबह मै उड़ती ये [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=146&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><!--chitthajagat claim code--><br />
<a href="http://www.chitthajagat.in/?claim=sxnaqlr50ohq&amp;ping=http://simplymanu.wordpress.com" title="चिट्ठाजगत अधिकृत कड़ी"><img src="http://www.chitthajagat.in/chavi/chitthajagatping.png" border="0" alt="चिट्ठाजगत अधिकृत कड़ी"></a><br />
<!--chitthajagat claim code--></p>
<h2><span style="color:#ff0000;">कुछ लम्हें त्रिवेणी के साथ&#8230;&#8230;&#8230;</span></h2>
<p> </p>
<h4><span style="color:#0000ff;">स<em><span>मेटी है आज कुछ बिख्ररी यादों की कतरने,</span></em></span></h4>
<h4><em><span style="color:#0000ff;">कुछ मीठे सपनो की रातें, मु्स्कराहटों का कोना |</span></em></h4>
<h4><em><span style="color:#0000ff;">शब की दहलीज पर ढूढां करता हूं, रोशनी मैं&#8230;..</span></em></h4>
<h4><em><span style="color:#0000ff;"> </span></em></h4>
<h4><em><span style="color:#0000ff;"> </span></em></h4>
<h4><em></em></h4>
<h4><em><span style="color:#0000ff;">दिल की दीवारों का भी है अजब आलम,</span></em></h4>
<h4><em><span style="color:#0000ff;">परतें उखड़ती हैं पर रंग उतरता ही नही |</span></em></h4>
<h4><em><span style="color:#0000ff;">इस घर के दरवाजे पर ताला जो लगा है&#8230;&#8230;.</span></em></h4>
<p><span style="color:#0000ff;"> </span></p>
<p><span style="color:#0000ff;"> </span></p>
<h4><em></em></h4>
<h4><em></em></h4>
<h4><em><span style="color:#0000ff;">मीठी सुबह मै उड़ती ये नमकीन खुशबू, </span></em></h4>
<h4><em><span style="color:#0000ff;">जिलाती है अह्सास उनके पास होने का |</span></em></h4>
<h4><em><span style="color:#0000ff;">कि बेखब्रर सोने का भी अपना इक मजां है&#8230;&#8230;</span></em></h4>
<p> </p>
<p>                                                                <em><span style="color:#0000ff;">                                       -मनु</span></em></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/simplymanu.wordpress.com/146/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/simplymanu.wordpress.com/146/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=146&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/07/28/%e0%a4%ae%e0%a5%88%e0%a4%82-%e0%a4%94%e0%a4%b0-%e0%a4%ae%e0%a5%87%e0%a4%b0%e0%a5%80-%e0%a4%a4%e0%a5%8d%e0%a4%b0%e0%a4%bf%e0%a4%b5%e0%a5%87%e0%a4%a3%e0%a5%80%e0%a4%af%e0%a4%be%e0%a4%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>

		<media:content url="http://www.chitthajagat.in/chavi/chitthajagatping.png" medium="image">
			<media:title type="html">चिट्ठाजगत अधिकृत कड़ी</media:title>
		</media:content>
	</item>
		<item>
		<title>EMMA: a free Java code coverage tool</title>
		<link>http://simplymanu.wordpress.com/2008/07/28/emma-a-free-java-code-coverage-tool/</link>
		<comments>http://simplymanu.wordpress.com/2008/07/28/emma-a-free-java-code-coverage-tool/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 13:15:47 +0000</pubDate>
		<dc:creator>Manu</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://simplymanu.wordpress.com/?p=124</guid>
		<description><![CDATA[How to Use EMMA-
 
ANT and Emma can be used together to automate the generation of code coverage report. Following Steps are solving the same purpose-
 
First define properties-           
            &#60;!&#8211; EMMA BEGIN &#8211;&#62;
            &#60;property name=&#8221;emma.dir&#8221; location=&#8221;bin/emma&#8221; /&#62;
            &#60;property name=&#8221;emma.thresholds&#8221; value=&#8221;class:100,method:100,block:100,line:100&#8243; /&#62;
            &#60;path id=&#8221;emma.libraryclasspath&#8221;&#62;
                        &#60;pathelement location=&#8221;lib/emma.jar&#8221; /&#62;
                        &#60;pathelement location=&#8221;lib/emma_ant.jar&#8221; /&#62;
            &#60;/path&#62;
            &#60;taskdef resource=&#8221;emma_ant.properties&#8221; classpathref=&#8221;emma.libraryclasspath&#8221; /&#62;
            &#60;!&#8211; EMMA [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=124&subd=simplymanu&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3 class="MsoNormal" style="text-align:left;margin:0;"><em><span style="color:#0000ff;">How to Use EMMA-</span></em></h3>
<p class="MsoNormal" style="text-align:left;margin:0;"> </p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;">ANT and Emma can be used together to automate the generation of code coverage report. Following Steps are solving the same purpose-</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="font-size:9pt;font-family:&quot;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;font-family:Lucida Sans Unicode;">First define properties-           </span></span></span></span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="font-size:9pt;font-family:&quot;"><span style="font-size:10pt;font-family:&quot;"><span style="color:#333300;">            &lt;!&#8211; EMMA BEGIN &#8211;&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>            </span>&lt;property name=&#8221;emma.dir&#8221; location=&#8221;bin/emma&#8221; /&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>            </span>&lt;property name=&#8221;emma.thresholds&#8221; value=&#8221;class:100,method:100,block:100,line:100&#8243; /&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>            </span>&lt;path id=&#8221;emma.libraryclasspath&#8221;&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>                        </span>&lt;pathelement location=&#8221;lib/emma.jar&#8221; /&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>                        </span>&lt;pathelement location=&#8221;lib/emma_ant.jar&#8221; /&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>            </span>&lt;/path&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>            </span>&lt;taskdef resource=&#8221;emma_ant.properties&#8221; classpathref=&#8221;emma.libraryclasspath&#8221; /&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:&quot;"><span><span style="color:#333300;"><span>            </span>&lt;!&#8211; EMMA END &#8211;&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0;">
<p class="MsoNormal" style="text-indent:-.25in;text-align:left;margin:0 0 0 .5in;"><span style="color:#333300;"><span>1) </span>Create ant target for the instrumentation of java classes-</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;!&#8211; ============================================ &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;!&#8211; Instrument the classes &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;!&#8211; ============================================ &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;target name=&#8221;emma.instrument&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;!&#8211; Instrument the class files. &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;emma enabled=&#8221;true&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;instr instrpath=&#8221;bin&#8221; destdir=&#8221;bin&#8221; metadatafile=&#8221;${emma.dir}/metadata.emma&#8221; merge=&#8221;true&#8221; mode=&#8221;overwrite&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;filter excludes=&#8221;com.XXX.somefolder.SomeJavaFile&#8221; /&gt;<span>             </span></span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;/instr&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;/emma&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"><span>   </span>&lt;/target&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:left;margin:0 0 0 .5in;"><span style="color:#333300;"><span>2) </span>Create ant target for the generation of code coverage report.</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;">&lt;!&#8211; ============================================ &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;!&#8211; Create coverage report &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;!&#8211; ============================================ &#8211;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;target name=&#8221;emma.report&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;emma enabled=&#8221;true&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;report sourcepath=&#8221;src&#8221; sort=&#8221;+name&#8221; metrics=&#8221;${emma.thresholds}&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;fileset dir=&#8221;${emma.dir}&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;include name=&#8221;*.emma&#8221; /&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;include name=&#8221;*.ec&#8221; /&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;/fileset&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;xml outfile=&#8221;${emma.dir}/coverage.xml&#8221; depth=&#8221;method&#8221; /&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;html outfile=&#8221;${emma.dir}/index.html&#8221; depth=&#8221;method&#8221; columns=&#8221;name,class,method,block,line&#8221; /&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;/report&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;/emma&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;/target&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:left;margin:0 0 0 .5in;"><span style="color:#333300;"><span>3) </span>Create ant target for the generation of Junit report.</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>      </span>&lt;target name=&#8221;junitreport&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>        </span>&lt;junitreport todir=&#8221;${junit.output.dir}&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>            </span>&lt;fileset dir=&#8221;${junit.output.dir}&#8221;&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>                </span>&lt;include name=&#8221;TEST-*.xml&#8221;/&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>            </span>&lt;/fileset&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>            </span>&lt;report format=&#8221;frames&#8221; todir=&#8221;${junit.output.dir}&#8221;/&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="color:#333300;"><span>        </span>&lt;/junitreport&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"><span>    </span>&lt;/target&gt;</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">After the creation of above ant targets, first of all run<span> </span><span>emma.instrument</span><span> </span>target, it will create metadata file of instrumented classes at PROJECT_HOME/bin/emma folder and all classes will get instrumented.</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">Now there are two ways to create converage.ec file, depend on the nature of project-</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">I) If project is a simple java project, run your junit test cases and coverage.ec file will create in your PROJECT_HOME folder. Copy this file into the PROJECT_HOME/bin/emma folder and run <span>emma.report</span> ant target. This will generate code coverage report in the PROJECT_HOME/bin/emma folder.</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">II) If project is an enterprise application project, export the .EAR file of your project into the concern folder of your application server. For example if you are using JBOSS, export .EAR into the JBOSS_HOME\server\default\deploy folder. This .EAR file should contain metadata.emma file. Now put the URL into the browser and play with your (read as launch/run) application. This will create coverage.ec in the JBOSS_HOME\bin folder. Now Copy this file into the PROJECT_HOME/bin/emma folder and run<span> </span><span>emma.report</span> ANT target. This will generate code coverage report in the PROJECT_HOME/bin/emma folder.</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">Finally Run <span>jnitreport</span> ANT target for junit report. So this is a simple way to generate code coverage and junit report through ant, Hope it helps. Good luck and please contact me if you have any difficulties or leave a comment below to help out other users.</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;"> </span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">Thanks,</span></p>
<p class="MsoNormal" style="text-align:left;margin:0 0 0 .25in;"><span style="color:#333300;">Manu</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/simplymanu.wordpress.com/124/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/simplymanu.wordpress.com/124/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/simplymanu.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/simplymanu.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/simplymanu.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/simplymanu.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/simplymanu.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/simplymanu.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/simplymanu.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/simplymanu.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/simplymanu.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/simplymanu.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=simplymanu.wordpress.com&blog=1620321&post=124&subd=simplymanu&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://simplymanu.wordpress.com/2008/07/28/emma-a-free-java-code-coverage-tool/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/faf96e7baa5c7f22d0fa5013af87c115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Manu</media:title>
		</media:content>
	</item>
	</channel>
</rss>