<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Java Application &#8211; Make sure only single/one instance running &#8211; with File Lock and ShutdownHook</title>
	<atom:link href="http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/</link>
	<description>My name is Jimmy, and this is my story... ;)</description>
	<lastBuildDate>Sat, 19 May 2012 00:40:36 +0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Federico</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-659</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Fri, 18 Nov 2011 13:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-659</guid>
		<description>Hi Jimmy,

this is the best and cleaner solution I&#039;ve found to the problem! Thanks for posting it!

The changes sassubra suggested make it works in Linux and Mac OS X too!</description>
		<content:encoded><![CDATA[<p>Hi Jimmy,</p>
<p>this is the best and cleaner solution I&#8217;ve found to the problem! Thanks for posting it!</p>
<p>The changes sassubra suggested make it works in Linux and Mac OS X too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimmy</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-577</link>
		<dc:creator>jimmy</dc:creator>
		<pubDate>Wed, 07 Sep 2011 07:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-577</guid>
		<description>Binding a port is also another possible solution, the disadvantages is you gonna used 1 port available on your OS.</description>
		<content:encoded><![CDATA[<p>Binding a port is also another possible solution, the disadvantages is you gonna used 1 port available on your OS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-575</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Thu, 01 Sep 2011 08:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-575</guid>
		<description>What about just binding a port?  This is enforced as a non shared kernel resource, and cleaned up on process exit by the OS.....</description>
		<content:encoded><![CDATA[<p>What about just binding a port?  This is enforced as a non shared kernel resource, and cleaned up on process exit by the OS&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimmy</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-514</link>
		<dc:creator>jimmy</dc:creator>
		<pubDate>Sun, 24 Jul 2011 00:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-514</guid>
		<description>@Yi: I think it should work on Linux.
Do the file created when the app run?</description>
		<content:encoded><![CDATA[<p>@Yi: I think it should work on Linux.<br />
Do the file created when the app run?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yi</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-512</link>
		<dc:creator>Yi</dc:creator>
		<pubDate>Fri, 22 Jul 2011 15:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-512</guid>
		<description>do you have solution for Linux mate?</description>
		<content:encoded><![CDATA[<p>do you have solution for Linux mate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yi</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-511</link>
		<dc:creator>Yi</dc:creator>
		<pubDate>Fri, 22 Jul 2011 15:20:48 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-511</guid>
		<description>Hey this approach does not work on Linux.</description>
		<content:encoded><![CDATA[<p>Hey this approach does not work on Linux.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-282</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Thu, 26 Aug 2010 16:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-282</guid>
		<description>On Red Hat with Java 1.6 I experienced that the f.delete() were allowed and each new process would therefor delete the lock before trying to acquire it. It worked perfectly after I removed the same bit of code as sassubra mentioned.</description>
		<content:encoded><![CDATA[<p>On Red Hat with Java 1.6 I experienced that the f.delete() were allowed and each new process would therefor delete the lock before trying to acquire it. It worked perfectly after I removed the same bit of code as sassubra mentioned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-265</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 15 Jul 2010 21:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-265</guid>
		<description>@Sassubra
Why would that work?</description>
		<content:encoded><![CDATA[<p>@Sassubra<br />
Why would that work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sassubra</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-240</link>
		<dc:creator>sassubra</dc:creator>
		<pubDate>Mon, 17 May 2010 21:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-240</guid>
		<description>You can remove the following lines from the code:

if (f.exists()) {
 // if exist try to delete it
 f.delete();
}

So that your code will work in solaris too.</description>
		<content:encoded><![CDATA[<p>You can remove the following lines from the code:</p>
<p>if (f.exists()) {<br />
 // if exist try to delete it<br />
 f.delete();<br />
}</p>
<p>So that your code will work in solaris too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimmy</title>
		<link>http://jimmod.com/blog/2008/07/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/comment-page-1/#comment-222</link>
		<dc:creator>jimmy</dc:creator>
		<pubDate>Wed, 14 Apr 2010 05:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-222</guid>
		<description>@Peter:
Glad my article can help you
Cheers :)</description>
		<content:encoded><![CDATA[<p>@Peter:<br />
Glad my article can help you<br />
Cheers <img src='http://jimmod.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

