I recently came across a property of commutative rings which I could prove only for rings that are (isomorphic to) a direct product of (possibly infinitely many) local rings.
It might be that my proof can be generalized to other kinds of rings, but nevertheless I am curious as to which commutative rings satisfy this property, i.e. are a direct product of local (commutative) rings.
For finite products of rings, I reckon it is at least necessary that no prime ideal is contained in more than one maximal ideal, as Spec$(A \times B)$ consists of ideals of the form $\mathbb{p} \times B$ or $A \times \mathbb{q}$ for $\mathbb{p} \in $ Spec$(A)$, $\mathbb{q} \in $ Spec$(B)$. I don't know whether this is sufficient or whether this would generalize to arbitary products of rings.
Any thoughts you have on this are welcome!