On 26 march 1862, Joshua enlisted at Rolla, Missouri for service with the Union Army. He was assigned to Company I of the 6th Missouri Cavalry and while on duty with that unit was engaged in combat during the seige of Vicksburg, Mississippi. He also served during the Red River Campaign in Louisana. He was discharged in Baton Rouge, Louisana on 30 January 1865, after nearly three years of combat duty. About 1874, the Joshua Shockley family joined one of the migrations to Texas. The family resided in Texas for only a short time prior to returning to Missouri. It was on the return journey northward, that Mary Jane became ill and died.
Joshua continued the journey back into Missouri and eventually settled in Webster County where his mother-in-law, brother and other relatives were living at the time. He acquired land and became a farmer there. On 11 February 1880 he remarried to Sarah Frances Hendrix, daughter of Samuel Hendrix.
Marriage 2 Sarah Francis Hendrix b: ABT. 1843 in Wright Co., MO.
Married: 11 FEB 1880 in Webster Co., MO.
Note: This marriage was Joshua's second marriage. Sarah and Francis did not have any children.