Through phase modulation of the ham incident on an optical cavity an error correction signal can be obtained from the phase dispersion characteristics of the resonator. By this means both a ring and a stationary--wave cavity have been locked onto resonance with a single mode laser.