He served as associate judge of the Lancaster County Court from January 3, 1811, to February 1, 1813, when he resigned, having been elected to Congress. He served in the War of 1812 as major general of Pennsylvania Militia.
From January 3, 1811, to February 1, 1813, he held the position of associate judge for the Lancaster County Court. He was then elected to Congress and later served as a major general in the Pennsylvania Militia during the War of 1812.