James begins his general epistle to scattered followers of Jesus as Messiah, knowing that they are experiencing trials. The first blast is one of "Be constantly rejoicing." He follows that with what is produced by the trials that come/are coming...endurance, maturity, peace.