As we know that in the case of session beans instance variables are not
transactional.
We implement SessionSynchronization interface in session bean to make
instance variable
in sync with database/initial val i.e. during the course of transaction you
modified yr
beans instance variables and then transaction is rolled back, so by using
callback methods
of SessionSynchronization interface (like beforeCompletion() or
afterCompletion()) that can
be achieved.
In the case of stateless session beans we dont have any instance variable
becos we dont want to
maintain any state, so no question of such synchronization.

I hope i answered you.
Regards,
Harvinder


-----Original Message-----
From: sOUMYA dUTTA [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 4:18 PM
To: [EMAIL PROTECTED]
Subject: restriction on Stateless Session Beans


Could someone tell me why should the Stateless Session Bean not be allowed
to implement the SessionSynchronization interface?

Thanks,
- Dutta.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to