Our instinctive attitude to sex often becomes apparent in dreams through the sexual act, and to ejaculate in a dream may be an effort to understand negative feelings.

It could also simply be indicative of the need for release, and the satisfaction of sexual needs.