He was a general staff major in the Austro-Hungarian army. During the 1848 Revolution, he participated on the side of the Conservative wing around Patriarch Josif Rajačić. He also fought at the Battle of Solferino.