In general the passengers are disembarked (see it as a two connecting flights). Sometime passengers could remain on the plane (but usually when most of people disembark. Refueling is considered a dangerous activity, so there are various special procedures and how many flight attendants should be ready (and where).