Hi Friends,

I have a question to ask about transaction.

Here is the scenario...

Client --> Servlet --> Entity Bean A (Container Managed Transaction and
Container Managed Persistence) --> Bean B (Bean Managed Transaction and Bean
Managed Persistence)

I read in the spec EJB 2.0 section 17.6.1 it says

"...... the Container suspends any transaction that may be associated with
the client ...... (this would happen if the instance......), the container
associates the method execution with this transaction"

correct me if I'm wrong please, does this mean that,

1. When Entity Bean A invoke the method on Entity Bean B the transaction
that is currently attached to Entity Bean A is suspended and then it will
resume the transaction again after it return back from Entity Bean B ?

2. Does the transaction in Entity Bean B affect the transaction in Entity
Bean A ?, what I'm trying to say is if Entity Bean B rolled back for some
reason does this roll back the transaction in Entity Bean A ?

Thanks for the help and have a nice day

Cheers
Nanik





_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

===========================================================================
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