Let $\{R_n\}_{n\in \mathbb{N}}$ be a collection of fields. Let $R:=\prod\limits_{n=1}^{\infty}R_n$. Show that for every $n$ $R_n$ is an injective $R$-module, but $\bigoplus\limits_{n=1}^{\infty}R_n$ is not injective.
Edit: First part is a consequence of Baer's criterion, but I don't see how to do the second part.
The inclusion $\bigoplus R_n \hookrightarrow \prod R_n$ is essential, hence $\bigoplus R_n$ is not injective.