On 14 October 1799, at the age of 18, he was commissioned Midshipman by his uncle, George Washington. During offensive operations against Tripoli in 1804, he served in Gunboat No. 6, commanded by Lieutenant John Trippe. In a stirring attack 3 August against a larger enemy warship, the two officers with only nine other men boarded and took the enemy ship in hand-to-hand fighting, although outnumbered three to one. Midshipman Henley also took part in several other attacks in the months that followed as Commodore Edward Preble's squadron carried out aggressive and successful operations against the Tripolitan pirates that made them ready to end their aggression. Later in his career, during the War of 1812, Henley commanded schoonerCarolina during the Battle of New Orleans. After the gallant delaying action by Lt. Thomas ap Catesby Jones at Lake Borgne, Carolina and other ships harassed the British with naval gunfire while protecting General Andrew Jackson's flank on the Mississippi River. Though his ship was destroyed, Henley contributed importantly to the large role the small squadron played in this last great victory of the war. On 5 March 1817, he rose to the rank of Captain. Early in 1819 Henley commanded U.S. man-of war Congress to China, the first U.S. warship to visit that country. He continued to serve with distinction until 23 May 1835 when he died on boardVandalia at Havana, Cuba.
Frances Henley, who married Rev. Edward Y. Higbie, an Episcopal clergyman.
Henrietta Elizabeth Henley, who married Jonathan Bayard Harrison Smith, a Washington D.C. lawyer, the son of Samuel Harrison Smith and Margaret Bayard, in 1842.
Through his second daughter, he was the grandfather of John Henley Smith, who married Rebecca Young, Samuel Harrison Smith, who married Alive Hall, and Bayard Thornton Smith, who married Eleanor J. Hyde in 1882. Through his youngest daughter, he was the grandfather of Caroline Luce, was the wife of Montgomery M. Macomb, a Brigadier General in the United States Army.
Lecgacy
The destroyer USS John D. Henley was named in his honor. See USS Henley for other ships named after John D. Henley and his brother, Robert Henley.