Yes it will work with some minor mods TJs had the AX-15 through 99. After that they had the NV-3550 (or the 3500, one of those) which is an even stronger trans if you can find it.
You'll need these parts from an MJ/XJ:
-t-case shifter linkage,
-trans mount
-trans shifter handle,
And the t-case will be clocked (rotated) slightly higher than an MJ/XJ so there's a chance of minor clearance issues with the floor pan.
Oh and yes, it'll be an internal slave.