In my view this would happen should necromancy be in use.
Necromancers take the place of the Priest, they give last rights and everything. No one "owns" a corpse, so as soon they hit the ground a waiting process begins. Usually around 2-3 months, before the re-animation.
The wealthy are able to buy the bodies of loved ones to see that they don't get reanimated. All peasant bodies are used for unskilled labor. Which the peasantry know nothing about the operation, instead the Necromancers tell the peasantry they are criminals, who are brought back for the good of the people.
This instills fear into the masses, keeping any thought of criminal activity to a minimum. Of course there are soldiers, however they are mostly to keep order, and not to fight. When they die, their corpses are prepared in a special manner in which they retain their intelligence, however none of their memories. They follow orders, the know no fear, and death has no concept.
When not at war, they are lent out to the nobles as guards or hired out as mercenaries. All are however on a "magical cord" and can be called back at anytime.
The Necromancers have a strict hierarchy, from oldest to youngest. The old never die though, as they all become Liches. Should a necromancer ever die (assuming they are still 'alive') they are reanimated as Deathknights. Serving as generals in the military, however unlike the soldiers they retain their memories.