John is talking about a lifetime confession here. He is talking about a change of heart, which brings about a change in the way we live. When this change is made within our heart and life, then and only then is there a joining together of ourselves with God. This union can only come about because of what Jesus did at the cross.
(Read 1 John 4:9)