Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

SessionSynchronization interface ?? PlS help

Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we using session Syn.. Interface in CMT stateful session beans

How do we implement ?? Is that implimented by container ?

Let say "afterBegin()" method. Is that call inside a method ? Or we need to code explicitly.

Please my idea about like this Tell is that correct or not ?

Inside CMT bean
.. someMethod(){
this.method1(); <-- metod 1 & 2 are in Transaction context
this.method2(); <--


Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

SessionSynchronization interface can be optionally implemented by a CMT Stateful Session bean. The 3 methods of this interface are container callback methods, meaning that the container will call these methods at the appropriate time during a transaction and execute any code you have written in them. These methods can be used to know the transaction boundaries for a CMT bean.

Below is an outline:

What functionality can be put into these 3 methods can be found in the spec on page 74. Also in HFE.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic