Joab the son of Zeruiah was commander over the army, and Jehoshaphat the son of Ahilud was secretary.