Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SessionSynchronization question

 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all:
My question pertains to the following quote from one of the exam simulators
If a stateful session bean implements javax.ejb.SessionSynchronization, the container sends transaction synchronization notifications to the session bean instance. This requires that the session bean methods must be invoked only within a transaction. This is ensured if Required, RequiresNew or Mandatory transaction attribute is specfied for the methods in the component interface.

This requirement is not stated in HF or in the spec perse. Can someone please confirm or deny this statement. If it is true, please point me to where in the spec this is supported.
Thanks.
 
Prasad Kuppa
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is true. Please refer to page 352 of spec. The reason for this is also specified there.
Prasad
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Prasad.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic