  We present a scheme to generate a maximally entangled state of two
three-level atoms in a cavity. The success or failure of the generation of the
desired entangled state can be determined by detecting the polarization of the
photon leaking out of the cavity. With the use of an automatic feedback, the
success probability of the scheme can be made to approach unity.
