Answer
A person becomes Junub (Junub is the term used to refer to a person who is in the state of Janābah) in two ways:
1. sexual intercourse;
2. ejaculation of semen, whether he is asleep or awake, and whether it is a little or a lot, with or without lust, voluntarily or involuntarily.