 He was raised in a devoutly Serbian Orthodox family, but was a dedicated Austrian citizen and devoted his life to service in the Austrian imperial army, like many others in their day.He began his military career at the age of 14 when he was accepted into the cadet company at Graz.By 1847 he had achieved the rank of captain-lieutenant.