Radiative characteristics of a Josephson junction in a resonant cavity