Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful Session Bean

 
sunnymet Metkar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the core spec it is written that

"The conversational state of a stateful session object is defined as the session bean instance�s field values,
its associated interceptors and their instance field values, plus the transitive closure of the objects from
these instances� fields reached by following Java object references."

Can anybody please explain the meaning of last part of this sentense (transitive closure of the objects from
these instances� fields reached by following Java object references).

Also, if Stateful session beans interceptor has a String instance variable with some value say String var="temp" and the bean is passivated, what will be the value of var after activation of bean. As per my understanding it will be "temp". Is this right?
 
sunnymet Metkar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody has answer to that please? :roll:
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
transitive - Of or relating to a relationship between three elements such that if the relationship holds between the first and second elements and between the second and third elements, it necessarily holds between the first and third elements. dictionary.com


Mumbo jumbo for sure. I think it just means that the bean remains in scope so long as there is a Java object somewhere that maintains a reference to it.

-Cameron McKenzie
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!