In BOS you'll arrive at the int'l arrivals terminal (Terminal E). Customs/Passport Control in BOS is a hit-or-miss affair, worst at the early afternoon European arrival wave. Your baggage can be sent through to AA domestic. You'll need to take a landside bus to the AA wing of terminal B and re-clear security there. I don't know that terminal very well, so you'll need help from others for that.