<?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/"
	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>Comments for Middleware Technologies [MCA II Yr, Anna University] by Roy Antony Arnold</title>
	<atom:link href="http://middlewares.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://middlewares.wordpress.com</link>
	<description>Lecturer, Panimalar Engineering College</description>
	<lastBuildDate>Sun, 07 Jun 2009 06:32:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on EJB &#8211; Interview Questions &amp; Answers by manoftoday: Java</title>
		<link>http://middlewares.wordpress.com/2008/05/02/ejb-interview-questions-answers/#comment-30</link>
		<dc:creator>manoftoday: Java</dc:creator>
		<pubDate>Sun, 07 Jun 2009 06:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://middlewares.wordpress.com/?p=234#comment-30</guid>
		<description>[...] http://middlewares.wordpress.com/2008/05/02/ejb-interview-questions-answers/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://middlewares.wordpress.com/2008/05/02/ejb-interview-questions-answers/" rel="nofollow">http://middlewares.wordpress.com/2008/05/02/ejb-interview-questions-answers/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The .NET Framework by ramakrishnak</title>
		<link>http://middlewares.wordpress.com/2008/03/04/the-net-framework/#comment-8</link>
		<dc:creator>ramakrishnak</dc:creator>
		<pubDate>Sun, 16 Mar 2008 11:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://middlewares.wordpress.com/?p=52#comment-8</guid>
		<description>explain about middleware technologies?</description>
		<content:encoded><![CDATA[<p>explain about middleware technologies?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on COM and CORBA Side by Side by selvakumarmmnagar</title>
		<link>http://middlewares.wordpress.com/2008/03/14/com-and-corba-side-by-side/#comment-6</link>
		<dc:creator>selvakumarmmnagar</dc:creator>
		<pubDate>Sun, 16 Mar 2008 09:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://middlewares.wordpress.com/2008/03/14/com-and-corba-side-by-side/#comment-6</guid>
		<description>wow its relly fantastic... it was much much useful for me ... thank u very much, i wont forget this at any time, bcoz i know it will get me more marks in university exam.... is it possible to get unit2 notes in middleware or even other subjects like unix, object oriented analysis etc., which comes under anna university, mca in fourth semester. i m ready to get it even from post, by paying money for it.</description>
		<content:encoded><![CDATA[<p>wow its relly fantastic&#8230; it was much much useful for me &#8230; thank u very much, i wont forget this at any time, bcoz i know it will get me more marks in university exam&#8230;. is it possible to get unit2 notes in middleware or even other subjects like unix, object oriented analysis etc., which comes under anna university, mca in fourth semester. i m ready to get it even from post, by paying money for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New Features in EJB 3.1 by tgautier</title>
		<link>http://middlewares.wordpress.com/2008/03/04/new-features-in-ejb-31/#comment-5</link>
		<dc:creator>tgautier</dc:creator>
		<pubDate>Tue, 11 Mar 2008 02:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://middlewares.wordpress.com/2008/03/04/new-features-in-ejb-31/#comment-5</guid>
		<description>Hi Roy.  You said you wanted comments :)

1) In any of your examples, I am curious how the container should interpret:

mySingletonBean.setRate(myRate);
myRate.setNewRate(4.55); 

The concern I have here is that this update will affect the VM where the POJO assignment was made, but not the other VMs in the cluster.   So if this update does affect the local VM and only the local VM, that seems counterintuitive.  The only other possibility I could imagine is that the local setRate)( method silently converts local calls into deep copies (which of course is not the calling convention regular Java programmers are used to), to simulate what happens in the other VMs.

2) In your second example, I presume that memory model semantics are applicable, not only in a single VM, but across the cluster?

I am particularly concerned about happens-before being preserved.  I presume that the container is responsible for setting locks, and these locks are pessimistic across the cluster.  What is the visibility for updates?  Presumably any thread, including on the same VM, that is blocked waiting for getRate to acquire the read lock will not get a stale read wrt to setRate&#039;s lock - and what exactly is the monitor that is being used to control the visibility - the singleton bean instance itself?  Mainly I am concerned with different threads in the same VM having proper visibility semantics.

3) In your last example, does it mean that changes to the singleton bean are protected inter-thread in the same VM, but in different VMs what does it mean?  No changes are replicated?  Changes are replicated when the container gets a chance?  If the latter, what if setRate makes more than one field state change - how are the changes applied?  I guess the container replicates the call with deep copies and repeats the call across the cluster so the local synchronization is preserved.

I guess this question applies to the first example to - how are updates handled across the VM

4) At Terracotta, we are using a convention for concurrency control similar to the second proposal - we have @AutolockWrite and @AutolockRead.  Whatever you choose, it would be nice to have an agreed upon set of annotations that are not EJB specific, and factor those annotations into core Java, so annotations like these in pure POJOs could cross domains more easily.


Thanks!  Very interesting post.  And btw, Terracotta already does everything you are specifying above, and more, but you already knew that ;-)

Regards,

Taylor Gautier
Product Manager, &lt;a href=&quot;http://www.terracotta.org&quot; rel=&quot;nofollow&quot;&gt;Terracotta&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Roy.  You said you wanted comments <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1) In any of your examples, I am curious how the container should interpret:</p>
<p>mySingletonBean.setRate(myRate);<br />
myRate.setNewRate(4.55); </p>
<p>The concern I have here is that this update will affect the VM where the POJO assignment was made, but not the other VMs in the cluster.   So if this update does affect the local VM and only the local VM, that seems counterintuitive.  The only other possibility I could imagine is that the local setRate)( method silently converts local calls into deep copies (which of course is not the calling convention regular Java programmers are used to), to simulate what happens in the other VMs.</p>
<p>2) In your second example, I presume that memory model semantics are applicable, not only in a single VM, but across the cluster?</p>
<p>I am particularly concerned about happens-before being preserved.  I presume that the container is responsible for setting locks, and these locks are pessimistic across the cluster.  What is the visibility for updates?  Presumably any thread, including on the same VM, that is blocked waiting for getRate to acquire the read lock will not get a stale read wrt to setRate&#8217;s lock &#8211; and what exactly is the monitor that is being used to control the visibility &#8211; the singleton bean instance itself?  Mainly I am concerned with different threads in the same VM having proper visibility semantics.</p>
<p>3) In your last example, does it mean that changes to the singleton bean are protected inter-thread in the same VM, but in different VMs what does it mean?  No changes are replicated?  Changes are replicated when the container gets a chance?  If the latter, what if setRate makes more than one field state change &#8211; how are the changes applied?  I guess the container replicates the call with deep copies and repeats the call across the cluster so the local synchronization is preserved.</p>
<p>I guess this question applies to the first example to &#8211; how are updates handled across the VM</p>
<p>4) At Terracotta, we are using a convention for concurrency control similar to the second proposal &#8211; we have @AutolockWrite and @AutolockRead.  Whatever you choose, it would be nice to have an agreed upon set of annotations that are not EJB specific, and factor those annotations into core Java, so annotations like these in pure POJOs could cross domains more easily.</p>
<p>Thanks!  Very interesting post.  And btw, Terracotta already does everything you are specifying above, and more, but you already knew that <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Regards,</p>
<p>Taylor Gautier<br />
Product Manager, <a href="http://www.terracotta.org" rel="nofollow">Terracotta</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on EJB 1.0 Specification by rohan72</title>
		<link>http://middlewares.wordpress.com/2008/02/01/ejb-10-specification/#comment-3</link>
		<dc:creator>rohan72</dc:creator>
		<pubDate>Fri, 01 Feb 2008 00:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://middlewares.wordpress.com/?p=20#comment-3</guid>
		<description>It&#039;s good material and it covers all the chapters.</description>
		<content:encoded><![CDATA[<p>It&#8217;s good material and it covers all the chapters.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
