Horribly played. Bet flop hard--this is a great flop to bet because of the A. Push turn. As played, I call the river though. You really think you are beat? Why would villain overbet the river with a 9, JJ or AA? You have showed zero strength in the hand so why would villain have any indication you would call an allin? If the answer is none, then he is just trying to get you to fold more often than not.