there are different ways. one involves an extra t-case of sorts. one has the input at the top of the axle and power goes into the diff, but also passes right out to the rear axle. I'm sure there are others, but these are the ones off the top of my head
here the top has an input, and an output. usually found in giant military-style axles like the bigger Rockwells.