I'm new to no limit, and one of the things I'm struggling with is when to call an all-in bet. How did I do in this one?

Villian in this seemed to be a pretty solid player.

Party Poker No-Limit Hold'em, $ BB (5 handed) Hand History Converter Tool from FlopTurnRiver.com (Format: FlopTurnRiver)

Button ($104.71)
SB ($124)
BB ($53.67)
Hero ($84)
MP ($113.30)

Preflop: Hero is UTG with J, J. SB posts a blind of $0.50.
Hero raises to $4, MP calls $4, 3 folds.

Flop: ($9.50) A, J, 7 (2 players)
Hero bets $4, MP calls $4.

Turn: ($17.50) Q (2 players)
Hero bets $8, MP raises to $16, Hero raises to $40, MP calls $89.30 (All-In), Hero calls $36 (All-In).

River: ($198.80) 9 (2 players, 2 all-in)

Final Pot: $198.80