Quantum jump dynamics in cavity QED