Exactly as Monsigneur Diggler's said. Whack it one side to get one bearing out, then pop the axle back in and bray the other bearing out.
When you put new ones back in, don't twat em in using the axle - it'll fook the bearings up - just get a socket from a socket set that's big enough to only touch the outside metal bearing cage and smack em in using that.