This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in Spec ....  RSS feed

 
Shanmugam Karthikeyan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a doubt in the following statement specified in the spec

"The conversational state of a STATEFUL session object is defined as the session bean instance�s fieldvalues, plus the transitive closure of the objects from the instance�s fields reached by following Java
object references.


I couldn't understand statement in bold ? Can anyone explain me...
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When an object is serialized in Java, it is the transitive closure of the object that is serialized. The transitive closure is the complete set of all the objects to which an object holds references, and all the objects referenced by those objects.

This post gives a detailed explanation.

transitive closure
 
Ramakrishnan Viswanathan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some more information. Please refer to the "Serialization vs. Remote Object References" subsection at the following place:

http://www.theserverside.com/articles/article.tss?l=ICommerce-Design-Strategies
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!