To coordinate a distributed transaction, i.e. a transaction that spans more
than one resource manager (for instance, a DB2 and an Oracle database), the
commit is done in two phases. That is, of course, why this is called the two
phase commit (or 2PC) protocol. The controlling entity, called the
Transaction Manager, asks each RM (resource manager) that has been involved
in the context of the transaction whether it is ready to commit the changes
(this is called the "prepare" phase). If all RMs agree that it's OK to
commit the transaction, the TM asks each in turn to commit (the "commit"
phase).
The process is defined in the OpenGroup's DTP standard, the most important
part of which is the XA protocol. This is the protocol used by RMs to
register with the TM.
Stefan
----- Original Message -----
From: "Danny Trieu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 02, 2000 7:37 PM
Subject: Re: Two Phase Commit
What is 'Two Phase Commit' ?
Thanks,
Stefan Tilkov wrote:
> At least IBM claims it does. Whether this is true in all possible
scenarios,
> I don't know.
>
> Regards,
> Stefan
>
> ----- Original Message -----
> From: "Amine Belouali" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 02, 2000 1:00 PM
> Subject: Re: Two Phase Commit
>
> Thanks Chris,
> do you have an idea if Websphere Application Server adv. Edition do it?
>
> -----Message d'origine-----
> De : A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]De la part de Chris Raber
> Envoy� : jeudi 1 juin 2000 20:58
> � : [EMAIL PROTECTED]
> Objet : Re: Two Phase Commit
>
> Amine,
>
> Typically there is transaction manager component that registers resources
> (JDBC connections...) as they are used by beans. When the transaction is
> committed (either by the container or the bean) the transaction manager
> executest the two phase commit protocol over the resources.
>
> -Chris.
>
> PS: Some EJB servers do this for real. Some do not!
>
> > -----Original Message-----
> > From: Amine Belouali [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, June 01, 2000 7:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: Two Phase Commit
> >
> > Hi,
> >
> > I would like to have some informations please about how EJBs manage a
Two
> > Phase Commit where they access different data sources (using some
gateways
> > like jdbc and odbc)
> >
> > Thanks in advance
> >
> >
==========================================================================
> > =
> > 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".
>
>
===========================================================================
> 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".
===========================================================================
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".