Hi Kevin,
The attached, while they do not record a Joseph Barry, they indicate that the Family of Barry had been in the British Army and settled in Carrick-on-Shannon in the 1800's, having enlisted in Waterford and Templemore.
Regards,
Credits: www.findmypast.ie