We want to build an exact sequence $$ 0 \longrightarrow A \longrightarrow B \longrightarrow C \longrightarrow D \longrightarrow 0 $$ such that $A \oplus C \cong B \oplus D$ and other in which that property does not hold.
Is it possible to obtain this with all modules not being null? I am trying to extend the idea of inclusion and projection with the direct sum in the middle term but doesn't seem to work.